From 3f4d78ef6dc863c12e76a5679bc4b989eda2a75a Mon Sep 17 00:00:00 2001 From: Colton Hurst Date: Wed, 5 Dec 2018 15:48:40 -0500 Subject: [PATCH] Change example text in variables.go Instead of 'short', which is a common programming language keyword, use something random like 'apple'. This way it prevents confusion from people learning explicit variable declaration, and thinking the type is a short instead of a string. --- examples/variables/variables.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/variables/variables.go b/examples/variables/variables.go index 13b371c..abff6b9 100644 --- a/examples/variables/variables.go +++ b/examples/variables/variables.go @@ -28,7 +28,7 @@ func main() { // The `:=` syntax is shorthand for declaring and // initializing a variable, e.g. for - // `var f string = "short"` in this case. - f := "short" + // `var f string = "apple"` in this case. + f := "apple" fmt.Println(f) }