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

Ikko Ashimine 2022-05-05 01:25:17 +09:00 committed by Jef Roosens
parent 665f5de33f
commit 499892bab8
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
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)')