We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5c418d commit ecf7f8cCopy full SHA for ecf7f8c
1 file changed
tutorials/learn-golang.org/en/Switches.md
@@ -75,7 +75,7 @@ Let's write an example code to check if the user's name is `John` or not
75
}
76
77
// let's change the username variable
78
- userName := "Bob"
+ userName = "Bob"
79
80
// prints Hi Bob!
81
switch userName {
@@ -86,10 +86,9 @@ Let's write an example code to check if the user's name is `John` or not
86
default:
87
fmt.Println("I don't know you!")
88
89
90
91
// let's change the username variable again
92
- userName := "Matthew"
+ userName = "Matthew"
93
94
// prints I don't know you!
95
0 commit comments