trpl-zh-cn/listings/ch13-functional-features/listing-13-10/src/main.rs

8 lines
116 B
Rust
Raw Normal View History

2023-01-16 17:34:52 +08:00
fn main() {
// ANCHOR: here
let v1 = vec![1, 2, 3];
2022-02-06 16:43:51 +08:00
2023-01-16 17:34:52 +08:00
let v1_iter = v1.iter();
// ANCHOR_END: here
2022-02-06 16:43:51 +08:00
}