solution to exercise 02_03
This commit is contained in:
parent
1e516bf0a5
commit
211f23cea4
@ -1,6 +1,6 @@
|
|||||||
/// Return `true` if `n` is even, `false` otherwise.
|
/// Return `true` if `n` is even, `false` otherwise.
|
||||||
fn is_even(n: u32) -> bool {
|
fn is_even(n: u32) -> bool {
|
||||||
todo!()
|
n % 2 == 0
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user