mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Remove trailing newlines from Hello World examples
This commit is contained in:
parent
6ea8df5e16
commit
9f68194436
5 changed files with 9 additions and 9 deletions
|
@ -3,4 +3,4 @@ app "hello_c"
|
|||
imports []
|
||||
provides [ main ] to pf
|
||||
|
||||
main = "Hello, World!\n"
|
||||
main = "Hello, World!"
|
||||
|
|
|
@ -7,6 +7,6 @@ greeting =
|
|||
hi = "Hello"
|
||||
name = "World"
|
||||
|
||||
"\(hi), \(name)!\n"
|
||||
"\(hi), \(name)!"
|
||||
|
||||
main = greeting
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue