mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Nim: Fix syntax error
Semicolons for types are supposed to be directly after the variable name.
This commit is contained in:
parent
45c9cb4379
commit
6a5b626f78
@ -28,7 +28,7 @@ Or for unparsable, broken code
|
|||||||
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"
|
||||||
nLength : int = len(lang)
|
nLength: int = len(lang)
|
||||||
boat: float
|
boat: float
|
||||||
truth: bool = false
|
truth: bool = false
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user