diff --git a/cli/tests/cli_run.rs b/cli/tests/cli_run.rs index 9c83504817..a2d22ae44f 100644 --- a/cli/tests/cli_run.rs +++ b/cli/tests/cli_run.rs @@ -329,7 +329,7 @@ mod cli_run { executable_filename: "hello_c", stdin: &[], input_file: None, - expected_ending:"Hello, World!\n", + expected_ending:"Hello, World!", use_valgrind: true, }, hello_zig:"hello-world" => Example { @@ -337,7 +337,7 @@ mod cli_run { executable_filename: "hello_zig", stdin: &[], input_file: None, - expected_ending:"Hello, World!\n", + expected_ending:"Hello, World!", use_valgrind: true, }, hello_rust:"hello-world" => Example { @@ -345,7 +345,7 @@ mod cli_run { executable_filename: "hello_rust", stdin: &[], input_file: None, - expected_ending:"Hello, World!\n", + expected_ending:"Hello, World!", use_valgrind: true, }, hello_swift:"hello-world" => Example { @@ -353,7 +353,7 @@ mod cli_run { executable_filename: "hello_swift", stdin: &[], input_file: None, - expected_ending:"Hello Swift, meet Roc\n", + expected_ending:"Hello, World!", use_valgrind: true, }, hello_web:"hello-world" => Example { @@ -361,7 +361,7 @@ mod cli_run { executable_filename: "hello_web", stdin: &[], input_file: None, - expected_ending:"Hello, World!\n", + expected_ending:"Hello, World!", use_valgrind: true, }, fib:"fib" => Example { diff --git a/examples/hello-world/hello_c.roc b/examples/hello-world/hello_c.roc index d6b1397003..9d960a2b96 100644 --- a/examples/hello-world/hello_c.roc +++ b/examples/hello-world/hello_c.roc @@ -3,4 +3,4 @@ app "hello_c" imports [] provides [ main ] to pf -main = "Hello, World!\n" +main = "Hello, World!" diff --git a/examples/hello-world/hello_rust.roc b/examples/hello-world/hello_rust.roc index 125f6f056b..305bc6da4b 100644 --- a/examples/hello-world/hello_rust.roc +++ b/examples/hello-world/hello_rust.roc @@ -7,6 +7,6 @@ greeting = hi = "Hello" name = "World" - "\(hi), \(name)!\n" + "\(hi), \(name)!" main = greeting diff --git a/examples/hello-world/swift-platform/host.swift b/examples/hello-world/swift-platform/host.swift index 74edc494d2..6451a6c534 100644 --- a/examples/hello-world/swift-platform/host.swift +++ b/examples/hello-world/swift-platform/host.swift @@ -53,6 +53,6 @@ extension RocStr { @_cdecl("main") func main() -> UInt8 { - print(roc__mainForHost_1_exposed().string) + print(roc__mainForHost_1_exposed().string, terminator: "") return 0 } diff --git a/examples/hello-world/zig-platform/host.zig b/examples/hello-world/zig-platform/host.zig index a2e4df7ac5..d30eccfbfe 100644 --- a/examples/hello-world/zig-platform/host.zig +++ b/examples/hello-world/zig-platform/host.zig @@ -97,7 +97,7 @@ pub fn main() u8 { std.os.clock_gettime(std.os.CLOCK_REALTIME, &ts2) catch unreachable; // stdout the result - stdout.print("{s}\n", .{callresult.asSlice()}) catch unreachable; + stdout.print("{s}", .{callresult.asSlice()}) catch unreachable; callresult.deinit();