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.
This commit is contained in:
Colton Hurst 2018-12-05 15:48:40 -05:00 committed by GitHub
parent ec54a84b0c
commit 3f4d78ef6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}