From ae4a9aca18df5e0bb2eaabe5bc4fd1237babaa3e Mon Sep 17 00:00:00 2001 From: Koki Nishihara Date: Thu, 23 Jul 2020 07:33:50 +0900 Subject: [PATCH] doc: edit comment in array example (#5936) --- doc/docs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/docs.md b/doc/docs.md index 5771805ac3..3623b9bc83 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -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