mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Fix typo in Go comment
This commit is contained in:
parent
6e7c5c7933
commit
cf976f3fa7
@ -99,7 +99,7 @@ can include line breaks.` // Same string type.
|
|||||||
|
|
||||||
// Arrays have size fixed at compile time.
|
// Arrays have size fixed at compile time.
|
||||||
var a4 [4]int // An array of 4 ints, initialized to all 0.
|
var a4 [4]int // An array of 4 ints, initialized to all 0.
|
||||||
a5 := [...]int{3, 1, 5, 10, 100} // An array initialized with a fixed size of fize
|
a5 := [...]int{3, 1, 5, 10, 100} // An array initialized with a fixed size of five
|
||||||
// elements, with values 3, 1, 5, 10, and 100.
|
// elements, with values 3, 1, 5, 10, and 100.
|
||||||
|
|
||||||
// Slices have dynamic size. Arrays and slices each have advantages
|
// Slices have dynamic size. Arrays and slices each have advantages
|
||||||
|
Loading…
Reference in New Issue
Block a user