Skip to content

Commit 285ed96

Browse files
authored
Merge pull request #174 from kdnakt/translate-iter_any
Translate untranslated lines in iter_any.md
2 parents b4e9b1f + f856775 commit 285ed96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/fn/closures/closure_examples/iter_any.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ fn main() {
4141
println!("2 in vec2: {}", vec2.into_iter().any(|x| x == 2));
4242
4343
// `iter()` only borrows `vec1` and its elements, so they can be used again
44+
// `iter()`は`vec1`とその要素を借用するだけなので、再び利用できる。
4445
println!("vec1 len: {}", vec1.len());
4546
println!("First element of vec1 is: {}", vec1[0]);
4647
// `into_iter()` does move `vec2` and its elements, so they cannot be used again
48+
// `into_iter()`は`vec2`とその要素をムーブするので、再利用することはできない。
4749
// println!("First element of vec2 is: {}", vec2[0]);
4850
// println!("vec2 len: {}", vec2.len());
4951
// TODO: uncomment two lines above and see compiler errors.
52+
// TODO: 上の2行をアンコメントしてコンパイルエラーになることを確認
5053
5154
let array1 = [1, 2, 3];
5255
let array2 = [4, 5, 6];

0 commit comments

Comments
 (0)