summaryrefslogtreecommitdiffhomepage
path: root/nim.html.markdown
diff options
context:
space:
mode:
authorJason J Ayala P <github@JasonAyala.com>2014-09-20 07:07:06 -0500
committerJason J Ayala P <github@JasonAyala.com>2014-09-20 07:07:06 -0500
commitd7e939ffd712e3b6ae1f45b81b1cc0248a28d00a (patch)
tree3ec5ddd603df7fed817745a7e225695ca5c6fa18 /nim.html.markdown
parent86022f3f3fa9a17ae0902855f25578815b6be49d (diff)
minor tweaks
Diffstat (limited to 'nim.html.markdown')
-rw-r--r--nim.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/nim.html.markdown b/nim.html.markdown
index 06adba81..4619975d 100644
--- a/nim.html.markdown
+++ b/nim.html.markdown
@@ -14,7 +14,7 @@ Nim is efficient, expressive, and elegant.
var # Declare (and assign) variables,
letter: char = 'n' # with or without type annotations
lang = "N" & "im"
- n_length : int = len(lang)
+ nLength : int = len(lang)
boat: float
truth: bool = false
@@ -247,7 +247,7 @@ of aNo:
proc strcmp(a, b: cstring): cint {.importc: "strcmp", nodecl.}
-var cmp = strcmp("C?", "Easy!")
+let cmp = strcmp("C?", "Easy!")
```
Additionally, Nim separates itself from its peers with metaprogramming,