Skip to content

Commit 9a8285d

Browse files
committed
edit
1 parent 7143bb2 commit 9a8285d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/arrays-sort/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
fn main() {
3-
let arr = [1, 3, 5, 7, 9, 11, 15];
3+
let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
44
let target = 7;
55

66
match binary_search(&arr, target) {
77
Some(index) => println!("Index element found {}", index),
8-
None => println!("None element in array"),
8+
None => println!("Target element {} not found in array", target),
99
}
1010
}
1111

0 commit comments

Comments
 (0)