mirror of
https://github.com/Floriansylvain/rust_dichotomie.git
synced 2026-08-19 11:43:17 +02:00
Simplification d'une condition dans la fonction search().
This commit is contained in:
+1
-2
@@ -119,7 +119,6 @@ fn search(nb: i32, array: [i32; 255]) -> i32 {
|
||||
}
|
||||
if found {
|
||||
return mid as i32;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user