commit
4b0d0453d9
@ -13,7 +13,7 @@ func main() {
|
|||||||
// the builtin `make`. Here we make a slice of `int`s
|
// the builtin `make`. Here we make a slice of `int`s
|
||||||
// of length `5` (initially empty-valued).
|
// of length `5` (initially empty-valued).
|
||||||
s := make([]int, 5)
|
s := make([]int, 5)
|
||||||
mt.Println("emp:", s)
|
fmt.Println("emp:", s)
|
||||||
|
|
||||||
// We can set and get just like with arrays.
|
// We can set and get just like with arrays.
|
||||||
s[4] = 100
|
s[4] = 100
|
||||||
|
Loading…
x
Reference in New Issue
Block a user