Skip to content

Commit 16dad5a

Browse files
committed
fix line io prepending instead of appending newline
1 parent 0ed5bbe commit 16dad5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

luminapath/std/io/lib.lm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn eprint str as s -> () =
1919
@[platform "linux"]
2020
when s can ToString
2121
pub fn eprintln str as s -> () =
22-
print_into ("\n" <> str) stderr
22+
print_into (str <> "\n") stderr
2323

2424
@[platform "linux"]
2525
when s can ToString
@@ -29,7 +29,7 @@ pub fn print str as s -> () =
2929
@[platform "linux"]
3030
when s can ToString
3131
pub fn println str as s -> () =
32-
print_into ("\n" <> str) stdout
32+
print_into (str <> "\n") stdout
3333

3434
@[platform "linux"]
3535
fn print_into str fd as string i32 -> () =

0 commit comments

Comments
 (0)