summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJasonJAyalaP <jason@jasonayala.com>2014-09-19 20:02:13 -0500
committerJasonJAyalaP <jason@jasonayala.com>2014-09-19 20:02:13 -0500
commit08c18afeb327303bab9473199f43d903d03a2607 (patch)
treeeef60644163e4ebbbd0ab1c6162e0f561fcc47c1
parent4595c7e3ed55b10b449e817657f3647f51e5a501 (diff)
cleanup
-rw-r--r--nim.html.markdown5
1 files changed, 3 insertions, 2 deletions
diff --git a/nim.html.markdown b/nim.html.markdown
index f22d0365..f84b8bbd 100644
--- a/nim.html.markdown
+++ b/nim.html.markdown
@@ -210,6 +210,7 @@ for i, c in myString: # Index and letter. Or `for j in` for just letter
if i mod 2 == 0: continue # Skip rest of iteration
elif c == 'X': break # Compact `if` form
else: echo(c)
+
#
# Procedures
#
@@ -237,7 +238,7 @@ of aYes:
of aNo:
echo "Oh do take a little!"
addSugar()
-# No need for an `else` here. only `yes` and `no` are possible.
+# No need for an `else` here. Only `yes` and `no` are possible.
proc pluralize(a: int): string =
if a > 1 or a == 0: return "s"
@@ -248,7 +249,7 @@ proc pluralize(a: int): string =
#
# Because Nim compiles to C, FFI is easy:
-#
+
proc strcmp(a, b: cstring): cint {.importc: "strcmp", nodecl.}
var cmp = strcmp("C?", "Easy!")