Skip to content

Commit 1738507

Browse files
author
henesy
committed
qtokenize(2): fix list order
1 parent 993e7fa commit 1738507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appl/lib/string.b

+2-2
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ qtokenize(s: string): (list of string, string) {
602602
' ' or '\t' or '\n' =>
603603
if(word == nil)
604604
continue;
605-
out = word :: out;
605+
out = append(word, out);
606606
word = nil;
607607

608608
* =>
@@ -613,7 +613,7 @@ qtokenize(s: string): (list of string, string) {
613613
return (nil, "missing quote");
614614

615615
if(word != nil)
616-
out = word :: out;
616+
out = append(word, out);
617617

618618
return (out, nil);
619619
}

0 commit comments

Comments
 (0)