diff --git a/sample-code/fib.cl b/sample-code/fib.cl index 81239e5..3276186 100644 --- a/sample-code/fib.cl +++ b/sample-code/fib.cl @@ -2,10 +2,10 @@ fn main() { for num in 0..=30 { - print("fib(", num, ") = ", fib_iterative(num)) + println("fib(", num, ") = ", fib_iterative(num)) } for num in 0..=30 { - print("fib(", num, ") = ", fib(num)) + println("fib(", num, ") = ", fib(num)) } } diff --git a/sample-code/fizzbuzz.cl b/sample-code/fizzbuzz.cl index ce5a94e..364018b 100644 --- a/sample-code/fizzbuzz.cl +++ b/sample-code/fizzbuzz.cl @@ -7,7 +7,7 @@ fn main() { // Outputs FizzBuzz for numbers between `start` and `end`, inclusive fn fizzbuzz(start: i128, end: i128) { for x in start..=end { - print(if x % 15 == 0 { + println(if x % 15 == 0 { "FizzBuzz" } else if 0 == x % 3 { "Fizz" diff --git a/sample-code/hello.cl b/sample-code/hello.cl index a375fad..792362e 100644 --- a/sample-code/hello.cl +++ b/sample-code/hello.cl @@ -1,3 +1,3 @@ fn main() { - print("Hello, world!") + println("Hello, world!") }