Skip to content

Commit c281fd2

Browse files
committed
Add clippy error and fail test
1 parent 1bc9ada commit c281fd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ pub fn multiply(a: i32, b: i32) -> i32 {
55

66
/// Divides two integers
77
pub fn divide(a: i32, b: i32) -> i32 {
8-
let a = a / 1;
8+
let a = a % 1;
9+
let b = b / 1;
910
a / b
1011
}
1112

0 commit comments

Comments
 (0)