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