Fix misspelled "declare"
This commit is contained in:
parent
cdc7265c57
commit
ebb0c69949
@ -24,7 +24,7 @@ func main() {
|
|||||||
// The builtin `len` returns the length of an array.
|
// The builtin `len` returns the length of an array.
|
||||||
fmt.Println("len:", len(a))
|
fmt.Println("len:", len(a))
|
||||||
|
|
||||||
// Use this syntax to decalare and initalize an array
|
// Use this syntax to declare and initalize an array
|
||||||
// in one line.
|
// in one line.
|
||||||
b := [5]int{1, 2, 3, 4, 5}
|
b := [5]int{1, 2, 3, 4, 5}
|
||||||
fmt.Println("dcl:", b)
|
fmt.Println("dcl:", b)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user