mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: edit comment in array example (#5936)
This commit is contained in:
parent
6586a9a657
commit
ae4a9aca18
@ -498,7 +498,7 @@ dynamic arrays:
|
||||
|
||||
```v
|
||||
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 {
|
||||
numbers << i
|
||||
// same as
|
||||
|
Loading…
Reference in New Issue
Block a user