mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
interface: fix function is private bug
This commit is contained in:
@ -172,6 +172,7 @@ fn (arr mut array) _push(val voidptr) {
|
||||
}
|
||||
|
||||
// `val` is array.data
|
||||
// TODO make private, right now it's used by strings.Builder
|
||||
pub fn (arr mut array) _push_many(val voidptr, size int) {
|
||||
if arr.len >= arr.cap - size {
|
||||
cap := (arr.len + size) * 2
|
||||
|
Reference in New Issue
Block a user