From 9e75ad79c5d2a1b6a57b685e63df32efd8894c8f Mon Sep 17 00:00:00 2001 From: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> Date: Mon, 13 May 2024 03:13:58 -0400 Subject: [nim/en] Clarify Nim zero value for uninitialized variables (#4573) --- nim.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nim.html.markdown') 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 -- cgit v1.2.3