sample-code: print->println to match interpreter behavior

This commit is contained in:
2024-07-26 05:13:52 -05:00
parent 695c812bf5
commit a8b8a91c79
3 changed files with 4 additions and 4 deletions

View File

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