@@ -3509,13 +3509,13 @@ msgstr "## 所有クロージャ"
35093509#. type: Plain text
35103510#: doc/tutorial.md:1510
35113511msgid ""
3512- "Owned closures, written `~fn` in analogy to the `~` pointer type , hold on to "
3512+ "Owned closures, written `proc` , hold on to "
35133513"things that can safely be sent between processes. They copy the values they "
35143514"close over, much like managed closures, but they also own them: that is, no "
35153515"other code can access them. Owned closures are used in concurrent code, "
35163516"particularly for spawning [tasks][tasks]."
35173517msgstr ""
3518- "`~` ポインタ型と同様に `~fn` 型 で書き表される所有クロージャは安全にプロセス"
3518+ "`~` `proc` で書き表される所有クロージャは安全にプロセス"
35193519"間で送信することができます。所有クローじゃはマネージドクロージャと全く同じよ"
35203520"うに閉じ込める値をコピーしますが、値を所有します。つまり、他のコードは閉じ込"
35213521"められた値にアクセスできなくなります。所有クロージャは並列プログラム、特に "
@@ -3666,11 +3666,11 @@ msgstr ""
36663666#: doc/tutorial.md:1582
36673667msgid ""
36683668"`do` is a convenient way to create tasks with the `task::spawn` function. "
3669- "`spawn` has the signature `spawn(fn: ~fn ())`. In other words, it is a "
3669+ "`spawn` has the signature `spawn(fn: proc ())`. In other words, it is a "
36703670"function that takes an owned closure that takes no arguments."
36713671msgstr ""
36723672"`task::spawn` 関数を用いてタスクを生成する場合、 `do` を用いると便利です。"
3673- "`spawn` は、 `spawn(fn: ~fn ())` という方を持っています。言い換えると、"
3673+ "`spawn` は、 `spawn(fn: proc ())` という方を持っています。言い換えると、"
36743674"`spawn` は「引数をとらない所有クロージャ」を引数としてとる関数ということで"
36753675"す。"
36763676
0 commit comments