mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
minor tweaks
This commit is contained in:
parent
86022f3f3f
commit
d7e939ffd7
@ -14,7 +14,7 @@ Nim is efficient, expressive, and elegant.
|
|||||||
var # Declare (and assign) variables,
|
var # Declare (and assign) variables,
|
||||||
letter: char = 'n' # with or without type annotations
|
letter: char = 'n' # with or without type annotations
|
||||||
lang = "N" & "im"
|
lang = "N" & "im"
|
||||||
n_length : int = len(lang)
|
nLength : int = len(lang)
|
||||||
boat: float
|
boat: float
|
||||||
truth: bool = false
|
truth: bool = false
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ of aNo:
|
|||||||
|
|
||||||
proc strcmp(a, b: cstring): cint {.importc: "strcmp", nodecl.}
|
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,
|
Additionally, Nim separates itself from its peers with metaprogramming,
|
||||||
|
Loading…
Reference in New Issue
Block a user