Update Examples
parent
8e5ef3d743
commit
c5655f383a
@ -1187,7 +1187,7 @@ pub trait Iterator
|
|||||||
|
|
||||||
fn main
|
fn main
|
||||||
let vec1 = vec![1, 2, 3]
|
let vec1 = vec![1, 2, 3]
|
||||||
vec2 = vec![4, 5, 6]
|
vec2 = vec![4, 5, 6]
|
||||||
|
|
||||||
//! Note use of fragment of loop construct to just get the corresponding iterator
|
//! Note use of fragment of loop construct to just get the corresponding iterator
|
||||||
println! "2 in vec1: {}", &in vec1.any &x => x == 2
|
println! "2 in vec1: {}", &in vec1.any &x => x == 2
|
||||||
|
Loading…
Reference in New Issue
Block a user