mirror of
https://github.com/Floriansylvain/rust_dichotomie.git
synced 2026-10-18 20:44:11 +02:00
Simplification d'une condition dans la fonction search().
This commit is contained in:
1 parent
35c9976dc0
commit
f3719ea37b
1 file changed
+1
-2
+1
-2
@@ -119,7 +119,6 @@ fn search(nb: i32, array: [i32; 255]) -> i32 {
|
|||||||
}
|
}
|
||||||
if found {
|
if found {
|
||||||
return mid as i32;
|
return mid as i32;
|
||||||
} else {
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user