Update Examples

Glen Whitney 2024-08-27 03:32:52 +00:00
parent 31a68de163
commit 5e533b3c10

@ -1203,7 +1203,7 @@ fn main
array2 = [4, 5, 6]
println! "2 in array1: {}", &in array1.any $ == &2
println!("2 in array2: {}", in array2.any $ == 2
println! "2 in array2: {}", in array2.any $ == 2
```
</td></tr></table>
@ -1261,7 +1261,7 @@ fn main
let mut into_iter = in vec2
println! "Find 2 in vec1: {:?}", iter .find *$ == &2
println!("Find 2 in vec2: {:?}", into_iter.find *$ == 2
println! "Find 2 in vec2: {:?}", into_iter.find *$ == 2
let array1 = [1, 2, 3];
let array2 = [4, 5, 6];