mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
Merge pull request #36 from JosephTLyons/Whitespace-cleanup
Cleaned up some trailing whitespace
This commit is contained in:
commit
9b302ae7cf
3 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
//
|
//
|
||||||
// "Players take turns to count incrementally, replacing
|
// "Players take turns to count incrementally, replacing
|
||||||
// any number divisible by three with the word "fizz",
|
// any number divisible by three with the word "fizz",
|
||||||
// and any number divisible by five with the word "buzz".
|
// and any number divisible by five with the word "buzz".
|
||||||
// - From https://en.wikipedia.org/wiki/Fizz_buzz
|
// - From https://en.wikipedia.org/wiki/Fizz_buzz
|
||||||
//
|
//
|
||||||
// Let's go from 1 to 16. This has been started for you, but there's
|
// Let's go from 1 to 16. This has been started for you, but there's
|
||||||
|
|
|
@ -59,7 +59,7 @@ fn fixTooSmall(n: u32) MyNumberError!u32 {
|
||||||
// If we get a TooSmall error, we should return 10.
|
// If we get a TooSmall error, we should return 10.
|
||||||
// If we get any other error, we should return that error.
|
// If we get any other error, we should return that error.
|
||||||
// Otherwise, we return the u32 number.
|
// Otherwise, we return the u32 number.
|
||||||
return detectProblems(n) ???
|
return detectProblems(n) ???
|
||||||
}
|
}
|
||||||
|
|
||||||
fn detectProblems(n: u32) MyNumberError!u32 {
|
fn detectProblems(n: u32) MyNumberError!u32 {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// var foo: []u8 = "foobar"[0..3];
|
// var foo: []u8 = "foobar"[0..3];
|
||||||
//
|
//
|
||||||
// to:
|
// to:
|
||||||
//
|
//
|
||||||
// var foo: []const u8 = "foobar"[0..3];
|
// var foo: []const u8 = "foobar"[0..3];
|
||||||
//
|
//
|
||||||
// See if you can fix this Zero Wing-inspired phrase descrambler:
|
// See if you can fix this Zero Wing-inspired phrase descrambler:
|
||||||
|
|
Loading…
Reference in a new issue