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

master
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
1 changed files with 1 additions and 1 deletions

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)')