Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-johnson-4 committed Dec 4, 2024
1 parent b53f9c2 commit 565014c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PLATFORM/C/LIB/vector.lsts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ let .sort(v: Vector<t>): Vector<t> = (

let print(v: Vector<x>): Nil = (
let vi = 0;
print("[");
print(c"[");
while vi < v.length {
if vi > 0 then print(",");
if vi > 0 then print(c",");
print(v.data[vi]);
vi = vi + 1;
};
print("]");
print(c"]");
);
1 change: 1 addition & 0 deletions tests/regress/vector-sort.lsts.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[1,3,4,8]

0 comments on commit 565014c

Please sign in to comment.