1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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.