We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bc9ada commit c281fd2Copy full SHA for c281fd2
src/lib.rs
@@ -5,7 +5,8 @@ pub fn multiply(a: i32, b: i32) -> i32 {
5
6
/// Divides two integers
7
pub fn divide(a: i32, b: i32) -> i32 {
8
- let a = a / 1;
+ let a = a % 1;
9
+ let b = b / 1;
10
a / b
11
}
12
0 commit comments