diff options
Diffstat (limited to 'nim.html.markdown')
-rw-r--r-- | nim.html.markdown | 5 |
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!") |