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

all: mutability check (part 1); enable mutable sumtype args

This commit is contained in:
Alexander Medvednikov
2020-09-22 05:28:29 +02:00
parent 1ee0939f69
commit 624f22e27e
12 changed files with 122 additions and 125 deletions

View File

@ -145,7 +145,7 @@ pub fn (a array) repeat(count int) array {
// array.sort sorts array in-place using given `compare` function as comparator
pub fn (mut a array) sort_with_compare(compare voidptr) {
C.qsort(a.data, a.len, a.element_size, compare)
C.qsort(mut a.data, a.len, a.element_size, compare)
}
// array.insert