diff options
author | Glenn Lewis <6598971+gmlewis@users.noreply.github.com> | 2024-05-13 03:13:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 01:13:58 -0600 |
commit | 9e75ad79c5d2a1b6a57b685e63df32efd8894c8f (patch) | |
tree | e4acf6cb12f4d0f6aa33d616af519465b8c4ed91 | |
parent | f6f88843aafe9a60569f7b93ae175cfd7281d260 (diff) |
[nim/en] Clarify Nim zero value for uninitialized variables (#4573)
-rw-r--r-- | nim.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nim.html.markdown b/nim.html.markdown index 81662630..e3c749dc 100644 --- a/nim.html.markdown +++ b/nim.html.markdown @@ -188,7 +188,7 @@ echo "I'm thinking of a number between 41 and 43. Guess which!" let number: int = 42 var raw_guess: string - guess: int + guess: int # Variables in Nim are always initialized with a zero value while guess != number: raw_guess = readLine(stdin) if raw_guess == "": continue # Skip this iteration |