Skip to content

Commit

Permalink
Correct docs for Assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
nighca committed Feb 17, 2024
1 parent 2562054 commit e5b5145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions 105-Assignments/assign-1.gop
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# assignment

// = is used for assigning. The values of multiple variables can be changed in one line. In this way, their values can be swapped without an intermediary variable.
var age int

Expand Down
1 change: 1 addition & 0 deletions 105-Assignments/assign-2.gop
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# = vs :=

// := is used for declaring and initializing. Multiple variables can be declared and intialized at one line.
age := 21 // age is declared and initialized to 21
println age
Expand Down

0 comments on commit e5b5145

Please sign in to comment.