Skip to content

Commit af4c728

Browse files
committed
Adds comments
1 parent cfaf283 commit af4c728

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codes/ch1_var-types-pointer-constants/helloworld.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ func main() {
2121
/**
2222
* Declare a variable with string type and assign a string value to it;
2323
* Type is optional.
24+
*
25+
* Note: Declaring variable and do not use is an error in Go
2426
*/
2527
var message string
2628
message = "Welcome to Go World!"

0 commit comments

Comments
 (0)