Skip to content

Commit 2758e06

Browse files
authored
remove unnecessary type conversions (#1411)
1 parent ff6d42b commit 2758e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codes/rust/chapter_computational_complexity/time_complexity.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ fn linear_log_recur(n: i32) -> i32 {
113113
return 1;
114114
}
115115
let mut count = linear_log_recur(n / 2) + linear_log_recur(n / 2);
116-
for _ in 0..n as i32 {
116+
for _ in 0..n {
117117
count += 1;
118118
}
119119
return count;

0 commit comments

Comments
 (0)