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:
parent
1a4d9017e2
commit
223b96a59a
@ -27,7 +27,7 @@ fn (a array) get(i int) voidptr {
|
|||||||
return a.data + i * a.element_size
|
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) {
|
fn (mut a array) set(i int, val voidptr) {
|
||||||
if i < 0 || i >= a.len {
|
if i < 0 || i >= a.len {
|
||||||
panic('array.set: index out of range') // FIXME: (i == $i, a.len == $a.len)')
|
panic('array.set: index out of range') // FIXME: (i == $i, a.len == $a.len)')
|
||||||
|
Loading…
Reference in New Issue
Block a user