doc: edit comment in array example (#5936)
parent
6586a9a657
commit
ae4a9aca18
|
@ -498,7 +498,7 @@ dynamic arrays:
|
||||||
|
|
||||||
```v
|
```v
|
||||||
mut numbers := []int{ cap: 1000 }
|
mut numbers := []int{ cap: 1000 }
|
||||||
// Now adding new elements is as efficient as setting them directly
|
// Now able to add new elements without reallocating
|
||||||
for i in 0 .. 1000 {
|
for i in 0 .. 1000 {
|
||||||
numbers << i
|
numbers << i
|
||||||
// same as
|
// same as
|
||||||
|
|
Loading…
Reference in New Issue