Skip to content

Commit e89486f

Browse files
authored
Merge pull request #275 from uqtimes/fix-typo
Fix typo (にに -> に, num -> nums)
2 parents bac89a3 + 92588fc commit e89486f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

1.6/ja/book/closures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ let takes_nums = || nums;
183183
<!-- in our closure, we have to take ownership of `nums`. It’s the same as if we’d -->
184184
<!-- passed `nums` to a function that took ownership of it. -->
185185
`Vec<T>` はその要素に対する所有権を持っています、
186-
それゆえそれらの要素をクロージャ内で参照した場合、 `num` の所有権を取ることになります。
187-
これは `num``num` の所有権を取る関数に渡した場合と同じです。
186+
それゆえそれらの要素をクロージャ内で参照した場合、 `nums` の所有権を取ることになります。
187+
これは `nums``nums` の所有権を取る関数に渡した場合と同じです。
188188

189189
<!-- ## `move` closures -->
190190
## `move` クロージャ

1.6/ja/book/match.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ error: non-exhaustive patterns: `_` not covered
5858
<!-- program will compile successfully. -->
5959
言い換えると、Rustは値を忘れていることを伝えようとしているのです。
6060
なぜなら `x` は整数であるため、Rustは `x` は多くの異なる値を取ることができることを知っています。
61-
例えば、 `6` などがそれにに当たります
61+
例えば、 `6` などがそれに当たります
6262
もし `_` がなかった場合、 `6` にマッチする腕が存在しない事になります、そのためRustはコンパイルを通しません。
6363
`_` は「全てキャッチする腕」のように振る舞います。
6464
もし他の腕がどれもマッチしなかった場合、 `_` の腕が実行されることになります、

1.9/ja/book/closures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ let takes_nums = || nums;
183183
<!-- in our closure, we have to take ownership of `nums`. It’s the same as if we’d -->
184184
<!-- passed `nums` to a function that took ownership of it. -->
185185
`Vec<T>` はその要素に対する所有権を持っています、
186-
それゆえそれらの要素をクロージャ内で参照した場合、 `num` の所有権を取ることになります。
187-
これは `num``num` の所有権を取る関数に渡した場合と同じです。
186+
それゆえそれらの要素をクロージャ内で参照した場合、 `nums` の所有権を取ることになります。
187+
これは `nums``nums` の所有権を取る関数に渡した場合と同じです。
188188

189189
<!-- ## `move` closures -->
190190
## `move` クロージャ

0 commit comments

Comments
 (0)