mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: fix remaining []array
warnings
This commit is contained in:
@ -2,7 +2,7 @@ module arrays
|
||||
|
||||
/*
|
||||
pub fn range<T>(start, end T) []T {
|
||||
mut res := []T
|
||||
mut res := []T{}
|
||||
for i := start; i < end; i++ {
|
||||
res << i
|
||||
}
|
||||
|
Reference in New Issue
Block a user