We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7143bb2 commit 9a8285dCopy full SHA for 9a8285d
1 file changed
examples/arrays-sort/src/main.rs
@@ -1,11 +1,11 @@
1
2
fn main() {
3
- let arr = [1, 3, 5, 7, 9, 11, 15];
+ let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
4
let target = 7;
5
6
match binary_search(&arr, target) {
7
Some(index) => println!("Index element found {}", index),
8
- None => println!("None element in array"),
+ None => println!("Target element {} not found in array", target),
9
}
10
11
0 commit comments