Skip to content

Commit a498b85

Browse files
authored
Merge pull request #257 from leque/fix-diverge
divergeの訳語を「発散」に変更
2 parents 6265c42 + bd515d8 commit a498b85

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

1.6/ja/book/functions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ fn foo(x: i32) -> i32 {
262262
あなたがこれまで式ベースの言語を使ったことがなければ、 `return` のない前の定義の方がちょっと変に見えるかもしれません。しかし、それは時間とともに直観的に感じられるようになります。
263263

264264
<!--## Diverging functions-->
265-
## ダイバージング関数
265+
## 発散する関数
266266

267267
<!--Rust has some special syntax for ‘diverging functions’, which are functions that-->
268268
<!--do not return:-->
269-
Rustはリターンしない関数、「ダイバージング関数」のための特別な構文をいくつか持っています
269+
Rustには「発散する関数」、すなわち値を返さない関数のための特別な構文がいくつかあります
270270

271271
```rust
272272
fn diverges() -> ! {
@@ -280,7 +280,7 @@ fn diverges() -> ! {
280280
<!--return, and so it has the type ‘`!`’, which is read ‘diverges’.-->
281281
`panic!` は既に見てきた `println!` と同様にマクロです。
282282
`println!` とは違って、 `panic!` は実行中の現在のスレッドを与えられたメッセージとともにクラッシュさせます。
283-
この関数はクラッシュを引き起こすので、決してリターンしません。そのため、それは「ダイバージ」と読む、`!`型を持つのです
283+
この関数はクラッシュを引き起こすので、決して値を返しません。そのため、この関数は「 `!` 」型を持つのです。`!`は「発散する(diverges)」と読みます
284284

285285
<!--If you add a main function that calls `diverges()` and run it, you’ll get-->
286286
<!--some output that looks like this:-->
@@ -337,7 +337,7 @@ stack backtrace:
337337
```
338338

339339
<!--A diverging function can be used as any type:-->
340-
ダイバージング関数は任意の型として使うことができます
340+
発散する関数は任意の型としても使えます
341341

342342
```should_panic
343343
# fn diverges() -> ! {

1.9/ja/book/functions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ fn foo(x: i32) -> i32 {
265265
あなたがこれまで式ベースの言語を使ったことがなければ、 `return` のない前の定義の方がちょっと変に見えるかもしれません。しかし、それは時間とともに直観的に感じられるようになります。
266266

267267
<!-- ## Diverging functions -->
268-
## ダイバージング関数
268+
## 発散する関数
269269

270270
<!-- Rust has some special syntax for ‘diverging functions’, which are functions that -->
271271
<!-- do not return: -->
272-
Rustはリターンしない関数、「ダイバージング関数」のための特別な構文をいくつか持っています
272+
Rustには「発散する関数」、すなわち値を返さない関数のための特別な構文がいくつかあります
273273

274274
```rust
275275
fn diverges() -> ! {
@@ -283,7 +283,7 @@ fn diverges() -> ! {
283283
<!-- return, and so it has the type ‘`!`’, which is read ‘diverges’. -->
284284
`panic!` は既に見てきた `println!` と同様にマクロです。
285285
`println!` とは違って、 `panic!` は実行中の現在のスレッドを与えられたメッセージとともにクラッシュさせます。
286-
この関数はクラッシュを引き起こすので、決してリターンしません。そのため、それは「ダイバージ」と読む、`!`型を持つのです
286+
この関数はクラッシュを引き起こすので、決して値を返しません。そのため、この関数は「 `!` 」型を持つのです。`!`は「発散する(diverges)」と読みます
287287

288288
<!-- If you add a main function that calls `diverges()` and run it, you’ll get -->
289289
<!-- some output that looks like this: -->
@@ -356,7 +356,7 @@ stack backtrace:
356356
```
357357

358358
<!-- A diverging function can be used as any type: -->
359-
ダイバージング関数は任意の型としても使えます
359+
発散する関数は任意の型としても使えます
360360

361361
```should_panic
362362
# fn diverges() -> ! {

TranslationTable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
| directory | ディレクトリ
6666
| discriminant | 判別子
6767
| distribution | 配布物
68-
| diverge | ダイバージ
69-
| diverging | ダイバージング
68+
| diverge | 発散する
69+
| diverging | 発散する〜(上の diverge を修飾語として使った場合)
7070
| documentation comment | ドキュメンテーションコメント
7171
| documentation test | ドキュメンテーションテスト
7272
| early return | 早期リターン

0 commit comments

Comments
 (0)