doc: add a missing word "type" in array.clone() docs (#7362)

pull/7363/head
Nacho Verdón 2020-12-16 18:23:00 +01:00 committed by GitHub
parent 553ecf63e7
commit 75d7ed92b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.