sample-code: print->println to match interpreter behavior
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user