1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-28 17:11:02 +02:00

Nim: Fix syntax error

Semicolons for types are supposed to be directly after the variable name.
This commit is contained in:
Josias
2020-07-16 18:48:59 +02:00
committed by Andrew Ryan Davis
parent 45c9cb4379
commit 6a5b626f78

View File

@@ -28,7 +28,7 @@ Or for unparsable, broken code
var # Declare (and assign) variables,
letter: char = 'n' # with or without type annotations
lang = "N" & "im"
nLength : int = len(lang)
nLength: int = len(lang)
boat: float
truth: bool = false