File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -555,12 +555,12 @@ <h2 id='早期リターン' class='section-header'><a href='#早期リターン'
555
555
556
556
<!--## Diverging functions-->
557
557
558
- < h2 id ='ダイバージング関数 ' class ='section-header '> < a href ='#ダイバージング関数 ' > ダイバージング関数 </ a > </ h2 >
558
+ < h2 id ='発散する関数 ' class ='section-header '> < a href ='#発散する関数 ' > 発散する関数 </ a > </ h2 >
559
559
<!--Rust has some special syntax for ‘diverging functions’, which are functions that-->
560
560
561
561
<!--do not return:-->
562
562
563
- < p > Rustはリターンしない関数、「ダイバージング関数」のための特別な構文をいくつか持っています 。</ p >
563
+ < p > Rustには「発散する関数」、すなわち値を返さない関数のための特別な構文がいくつかあります 。</ p >
564
564
565
565
< span class ='rusttest '> fn main() {
566
566
fn diverges() -> ! {
@@ -581,7 +581,7 @@ <h2 id='ダイバージング関数' class='section-header'><a href='#ダイバ
581
581
582
582
< p > < code > panic!</ code > は既に見てきた < code > println!</ code > と同様にマクロです。
583
583
< code > println!</ code > とは違って、 < code > panic!</ code > は実行中の現在のスレッドを与えられたメッセージとともにクラッシュさせます。
584
- この関数はクラッシュを引き起こすので、決してリターンしません 。そのため、それは「ダイバージ」と読む、 「 < code > !</ code > 」型を持つのです 。</ p >
584
+ この関数はクラッシュを引き起こすので、決して値を返しません 。そのため、この関数は「 < code > ! </ code > 」型を持つのです。 「 < code > !</ code > 」は「発散する(diverges)」と読みます 。</ p >
585
585
586
586
<!--If you add a main function that calls `diverges()` and run it, you’ll get-->
587
587
@@ -641,7 +641,7 @@ <h2 id='ダイバージング関数' class='section-header'><a href='#ダイバ
641
641
642
642
<!--A diverging function can be used as any type:-->
643
643
644
- < p > ダイバージング関数は任意の型として使うことができます 。</ p >
644
+ < p > 発散する関数は任意の型としても使えます 。</ p >
645
645
646
646
< span class ='rusttest '> fn main() {
647
647
fn diverges() -> ! {
You can’t perform that action at this time.
0 commit comments