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

builtin: fix typo in array_bare.v (#14299)

This commit is contained in:
Ikko Ashimine 2022-05-05 01:25:17 +09:00 committed by GitHub
parent 1a4d9017e2
commit 223b96a59a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ fn (a array) get(i int) voidptr {
return a.data + i * a.element_size
}
// Private function. Used to implement assigment to the array element.
// Private function. Used to implement assignment to the array element.
fn (mut a array) set(i int, val voidptr) {
if i < 0 || i >= a.len {
panic('array.set: index out of range') // FIXME: (i == $i, a.len == $a.len)')