Skip to content

Commit ccef238

Browse files
committed
src/bin/2-keys-keyboard.rs
1 parent e7e551c commit ccef238

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/bin/2-keys-keyboard.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ struct Solution;
1010

1111
impl Solution {
1212
pub fn min_steps(mut n: i32) -> i32 {
13-
if n == 1 {
14-
return 0;
15-
}
13+
if n == 1 { return 0; }
1614

1715
// 检查是否是质数
1816
let mut count = 0;

0 commit comments

Comments
 (0)