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

all: updateimport () and []array

This commit is contained in:
yuyi
2020-04-26 19:49:31 +08:00
committed by GitHub
parent 7b39ab6d06
commit 9f4d498ff1
59 changed files with 181 additions and 254 deletions

View File

@@ -46,7 +46,7 @@ pub fn (r mut Reader) read() ?[]string {
// Once we have multi dimensional array
// pub fn (r mut Reader) read_all() ?[][]string {
// mut records := []string
// mut records := []string{}
// for {
// record := r.read_record() or {
// if error(err).error == err_eof.error {
@@ -110,7 +110,7 @@ fn (r mut Reader) read_record() ?[]string {
}
break
}
mut fields := []string
mut fields := []string{}
mut i := -1
for {
// not quoted