Skip to content

Commit 07c9b41

Browse files
committed
update translation
1 parent 85b0bfa commit 07c9b41

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

1.6/ja/book/slice-patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!-- If you want to match against a slice or array, you can use `&` with the -->
55
<!-- `slice_patterns` feature: -->
6-
スライスや配列に対してマッチを行いたい場合、 `slice_patterns` フィーチャを有効にし `&` を使うことができます。
6+
スライスや配列に対してマッチを行いたい場合、 `slice_patterns` フィーチャを有効にすると以下のように `&` を使うことができます。
77

88
```rust
99
#![feature(slice_patterns)]
@@ -22,7 +22,7 @@ fn main() {
2222
<!-- elements inside a pattern matching a slice. This wildcard can only be used once -->
2323
<!-- for a given array. If there's an identifier before the `..`, the result of the -->
2424
<!-- slice will be bound to that name. For example: -->
25-
`advanced_slice_patterns` フィーチャを使うと、 `..` によってスライスにマッチするパターンの中で任意数の要素を示すことができます。このワイルドカードは与えられるパターン配列の中で一度だけ使うことができます。もし `..` の前に識別子(訳注: 以下の例では `inside` )があれば、そのスライスの結果はその識別子名に束縛されます。例えば以下のようになります。
25+
`advanced_slice_patterns` フィーチャを有効にすると、スライスにマッチするパターンの中で `..` を使ってその要素の数が任意であることを示すことができます。このワイルドカードは与えるパターン配列の中で一度だけ使うことができます。もし `..` の前に識別子(訳注: 以下の例では `inside` )があれば、そのスライスの結果はその識別子名に束縛されます。例えば以下のようになります。
2626

2727
```rust
2828
#![feature(advanced_slice_patterns, slice_patterns)]

TranslationTable.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
| allocator | アロケータ
1515
| application | アプリケーション
1616
| arity | アリティ
17+
| array | 配列
1718
| associated - | 関連-
1819
| attribute | アトリビュート
1920
| binary | バイナリ
@@ -35,12 +36,14 @@
3536
| expression statement | 式文
3637
| feature | フィーチャ
3738
| generics | ジェネリクス
39+
| identifier | 識別子
3840
| immutable | イミュータブル
3941
| Intrinsics | Intrinsic
4042
| Lang Items | Lang Item
4143
| library | ライブラリ
4244
| lifetime | ライフタイム
4345
| link | リンク
46+
| match | マッチ
4447
| memory | メモリ
4548
| move | ムーブ
4649
| mutable | ミュータブル

0 commit comments

Comments
 (0)