mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 13:22:19 +08:00
10 lines
200 B
Rust
Executable File
10 lines
200 B
Rust
Executable File
fn main() {
|
|
// ANCHOR: here
|
|
let v = vec!['a', 'b', 'c'];
|
|
|
|
for (index, value) in v.iter().enumerate() {
|
|
println!("{} is at index {}", value, index);
|
|
}
|
|
// ANCHOR_END: here
|
|
}
|