From 75d7ed92b08b6cf4ab9bfc63150e4cd5e2967636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Verd=C3=B3n?= Date: Wed, 16 Dec 2020 18:23:00 +0100 Subject: [PATCH] doc: add a missing word "type" in array.clone() docs (#7362) --- doc/docs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/docs.md b/doc/docs.md index 4e2f2e0749..820c496b8d 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -534,7 +534,7 @@ The type of an array is determined by the first element: * `[1, 2, 3]` is an array of ints (`[]int`). * `['a', 'b']` is an array of strings (`[]string`). -The user can explicitly specify the for the first element: `[byte(16), 32, 64, 128]`. +The user can explicitly specify the type for the first element: `[byte(16), 32, 64, 128]`. V arrays are homogeneous (all elements must have the same type). This means that code like `[1, 'a']` will not compile.