mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-08 11:49:19 +00:00
Exercise 14
This commit is contained in:
parent
1aed8d48f6
commit
97ee2ccda6
@ -2,13 +2,13 @@
|
|||||||
//
|
//
|
||||||
// Execute `rustlings hint if1` or use the `hint` watch subcommand for a hint.
|
// Execute `rustlings hint if1` or use the `hint` watch subcommand for a hint.
|
||||||
|
|
||||||
// I AM NOT DONE
|
|
||||||
|
|
||||||
pub fn bigger(a: i32, b: i32) -> i32 {
|
pub fn bigger(a: i32, b: i32) -> i32 {
|
||||||
// Complete this function to return the bigger number!
|
if a < b {
|
||||||
// Do not use:
|
return b
|
||||||
// - another function call
|
}
|
||||||
// - additional variables
|
return a
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't mind this for now :)
|
// Don't mind this for now :)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user