From 839bd0e150bdfb89070cb18ff3e0aefc0feaf701 Mon Sep 17 00:00:00 2001 From: Swastik Baranwal Date: Sat, 11 Jul 2020 19:07:55 +0530 Subject: [PATCH] doc: fix array init (#5801) --- doc/docs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/docs.md b/doc/docs.md index a3d0f8f943..fdb7c30d44 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -2038,7 +2038,7 @@ Run `v translate test.cpp` and V will generate `test.v`: ```v fn main { - mut s := [] + mut s := []string{} s << 'V is ' s << 'awesome' println(s.len)