Remove trailing newlines from Hello World examples

This commit is contained in:
Jan Van Bruggen 2022-02-27 19:34:47 -07:00
parent 6ea8df5e16
commit 9f68194436
5 changed files with 9 additions and 9 deletions

View file

@ -3,4 +3,4 @@ app "hello_c"
imports []
provides [ main ] to pf
main = "Hello, World!\n"
main = "Hello, World!"

View file

@ -7,6 +7,6 @@ greeting =
hi = "Hello"
name = "World"
"\(hi), \(name)!\n"
"\(hi), \(name)!"
main = greeting

View file

@ -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
}

View file

@ -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();