From 59cb2683d1f3d9f2b455d3730c0d208d73199f2c Mon Sep 17 00:00:00 2001 From: Ashish Singh <45603733+siashish@users.noreply.github.com> Date: Sat, 16 Sep 2023 16:07:06 +0530 Subject: [PATCH] Fix typo in variables page document in the document, the given syntax has a typo. --- public/variables | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/variables b/public/variables index 5c07db6..0c4ead8 100644 --- a/public/variables +++ b/public/variables @@ -122,7 +122,7 @@ zero value for an int is 0.

The := syntax is shorthand for declaring and initializing a variable, e.g. for -var f string = "apple" in this case. +var f string := "apple" in this case. This syntax is only available inside functions.