Skip to content

Commit 1ca6a0a

Browse files
committed
ci: generate pages at 5cf9c7a [ci skip]
1 parent 5cf9c7a commit 1ca6a0a

File tree

5 files changed

+18
-16
lines changed

5 files changed

+18
-16
lines changed

docs/flow_control/match/guard.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,20 +174,21 @@ <h1 id="ガード"><a class="header" href="#ガード">ガード</a></h1>
174174
Temperature::Fahrenheit(t) =&gt; println!(&quot;{}F is below 86 Fahrenheit&quot;, t),
175175
}
176176
}</code></pre></pre>
177-
<p>Note that the compiler won't take guard conditions into account when checking
177+
<!--
178+
Note that the compiler won't take guard conditions into account when checking
178179
if all patterns are covered by the match expression.
179-
possible conditions have been checked. Therefore, you must use the <code>_</code> pattern
180-
at the end.</p>
181-
<pre><pre class="playground"><code class="language-rust editable ignore mdbook-runnable edition2021">```rust,editable
182-
fn main() {
180+
-->
181+
<p>コンパイラは、match式ですべてのパターンがカバーされているかどうかを調べるときに、
182+
ガード条件を考慮しない点に注意してください。</p>
183+
<pre><pre class="playground"><code class="language-rust editable ignore mdbook-runnable edition2021">fn main() {
183184
let number: u8 = 4;
184185

185186
match number {
186187
i if i == 0 =&gt; println!(&quot;Zero&quot;),
187188
i if i &gt; 0 =&gt; println!(&quot;Greater than zero&quot;),
188189
// _ =&gt; unreachable!(&quot;Should never happen.&quot;),
189190
// TODO ^ uncomment to fix compilation
190-
_ =&gt; println!(&quot;Fell through&quot;), // This should not be possible to reach
191+
// TODO ^ アンコメントしてコンパイルを修正しよう
191192
}
192193
}</code></pre></pre>
193194
<!--

docs/print.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@ <h1 id="ミュータビリティ"><a class="header" href="#ミュータビリテ
20842084
println!(&quot;After mutation: {}&quot;, mutable_binding);
20852085

20862086
// Error! Cannot assign a new value to an immutable variable
2087-
// Error!
2087+
// エラー! イミュータブルな変数には新しい値を代入できません
20882088
_immutable_binding += 1;
20892089
// FIXME ^ Comment out this line
20902090
// FIXME ^ この行をコメントアウトしましょう
@@ -3488,20 +3488,21 @@ <h1 id="ガード"><a class="header" href="#ガード">ガード</a></h1>
34883488
Temperature::Fahrenheit(t) =&gt; println!(&quot;{}F is below 86 Fahrenheit&quot;, t),
34893489
}
34903490
}</code></pre></pre>
3491-
<p>Note that the compiler won't take guard conditions into account when checking
3491+
<!--
3492+
Note that the compiler won't take guard conditions into account when checking
34923493
if all patterns are covered by the match expression.
3493-
possible conditions have been checked. Therefore, you must use the <code>_</code> pattern
3494-
at the end.</p>
3495-
<pre><pre class="playground"><code class="language-rust editable ignore mdbook-runnable edition2021">```rust,editable
3496-
fn main() {
3494+
-->
3495+
<p>コンパイラは、match式ですべてのパターンがカバーされているかどうかを調べるときに、
3496+
ガード条件を考慮しない点に注意してください。</p>
3497+
<pre><pre class="playground"><code class="language-rust editable ignore mdbook-runnable edition2021">fn main() {
34973498
let number: u8 = 4;
34983499

34993500
match number {
35003501
i if i == 0 =&gt; println!(&quot;Zero&quot;),
35013502
i if i &gt; 0 =&gt; println!(&quot;Greater than zero&quot;),
35023503
// _ =&gt; unreachable!(&quot;Should never happen.&quot;),
35033504
// TODO ^ uncomment to fix compilation
3504-
_ =&gt; println!(&quot;Fell through&quot;), // This should not be possible to reach
3505+
// TODO ^ アンコメントしてコンパイルを修正しよう
35053506
}
35063507
}</code></pre></pre>
35073508
<!--

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/variable_bindings/mut.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ <h1 id="ミュータビリティ"><a class="header" href="#ミュータビリテ
166166
println!(&quot;After mutation: {}&quot;, mutable_binding);
167167

168168
// Error! Cannot assign a new value to an immutable variable
169-
// Error!
169+
// エラー! イミュータブルな変数には新しい値を代入できません
170170
_immutable_binding += 1;
171171
// FIXME ^ Comment out this line
172172
// FIXME ^ この行をコメントアウトしましょう

0 commit comments

Comments
 (0)