Update Examples
parent
31a68de163
commit
5e533b3c10
@ -1203,7 +1203,7 @@ fn main
|
|||||||
array2 = [4, 5, 6]
|
array2 = [4, 5, 6]
|
||||||
|
|
||||||
println! "2 in array1: {}", &in array1.any $ == &2
|
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>
|
</td></tr></table>
|
||||||
@ -1261,7 +1261,7 @@ fn main
|
|||||||
let mut into_iter = in vec2
|
let mut into_iter = in vec2
|
||||||
|
|
||||||
println! "Find 2 in vec1: {:?}", iter .find *$ == &2
|
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 array1 = [1, 2, 3];
|
||||||
let array2 = [4, 5, 6];
|
let array2 = [4, 5, 6];
|
||||||
|
Loading…
Reference in New Issue
Block a user