Skip to content

Commit e7acbd9

Browse files
committed
ci: generate pages at 33b0f4b [ci skip]
1 parent 33b0f4b commit e7acbd9

File tree

5 files changed

+16
-28
lines changed

5 files changed

+16
-28
lines changed

docs/conversion/from_into.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ <h2 id="into"><a class="header" href="#into"><code>Into</code></a></h2>
222222
fn main() {
223223
let int = 5;
224224
// Try removing the type annotation
225+
// ここの型アノテーションを消してみましょう。
225226
let num: Number = int.into();
226227
println!(&quot;My number is {:?}&quot;, num);
227228
}</code></pre></pre>

docs/print.html

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,12 +2100,6 @@ <h1 id="スコープとシャドーイング"><a class="header" href="#スコー
21002100
let short_lived_binding = 2;
21012101

21022102
println!(&quot;inner short: {}&quot;, short_lived_binding);
2103-
2104-
// This binding *shadows* the outer one
2105-
// この変数はスコープ外の同名の変数を *シャドーイング* します。
2106-
let long_lived_binding = 5_f32;
2107-
2108-
println!(&quot;inner long: {}&quot;, long_lived_binding);
21092103
}
21102104
// End of the block
21112105
// ブロックの終わり
@@ -2117,28 +2111,27 @@ <h1 id="スコープとシャドーイング"><a class="header" href="#スコー
21172111
// FIXME ^ コメントアウトしましょう
21182112

21192113
println!(&quot;outer long: {}&quot;, long_lived_binding);
2120-
2121-
// This binding also *shadows* the previous binding
2122-
// この変数バインディングも以前に定義した変数を *シャドーイング* します
2123-
let long_lived_binding = 'a';
2124-
2125-
println!(&quot;outer long: {}&quot;, long_lived_binding);
21262114
}</code></pre></pre>
2127-
<p>Also, <a href="https://en.wikipedia.org/wiki/Variable_shadowing">variable shadowing</a> is allowed.</p>
2115+
<!--
2116+
Also, [variable shadowing][variable-shadow] is allowed.
2117+
-->
2118+
<p>同様に、<a href="https://en.wikipedia.org/wiki/Variable_shadowing">変数のシャドーイング</a>も可能です。</p>
21282119
<pre><pre class="playground"><code class="language-rust editable ignore mdbook-runnable edition2021">fn main() {
21292120
let shadowed_binding = 1;
21302121

21312122
{
21322123
println!(&quot;before being shadowed: {}&quot;, shadowed_binding);
21332124

21342125
// This binding *shadows* the outer one
2126+
// この変数はスコープ外の同名の変数を *シャドーイング* します
21352127
let shadowed_binding = &quot;abc&quot;;
21362128

21372129
println!(&quot;shadowed in inner block: {}&quot;, shadowed_binding);
21382130
}
21392131
println!(&quot;outside inner block: {}&quot;, shadowed_binding);
21402132

21412133
// This binding *shadows* the previous binding
2134+
// この変数バインディングは以前に定義した変数を *シャドーイング* します
21422135
let shadowed_binding = 2;
21432136
println!(&quot;shadowed in outer block: {}&quot;, shadowed_binding);
21442137
}</code></pre></pre>
@@ -2584,6 +2577,7 @@ <h2 id="into"><a class="header" href="#into"><code>Into</code></a></h2>
25842577
fn main() {
25852578
let int = 5;
25862579
// Try removing the type annotation
2580+
// ここの型アノテーションを消してみましょう。
25872581
let num: Number = int.into();
25882582
println!(&quot;My number is {:?}&quot;, num);
25892583
}</code></pre></pre>

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/scope.html

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,6 @@ <h1 id="スコープとシャドーイング"><a class="header" href="#スコー
167167
let short_lived_binding = 2;
168168

169169
println!(&quot;inner short: {}&quot;, short_lived_binding);
170-
171-
// This binding *shadows* the outer one
172-
// この変数はスコープ外の同名の変数を *シャドーイング* します。
173-
let long_lived_binding = 5_f32;
174-
175-
println!(&quot;inner long: {}&quot;, long_lived_binding);
176170
}
177171
// End of the block
178172
// ブロックの終わり
@@ -184,28 +178,27 @@ <h1 id="スコープとシャドーイング"><a class="header" href="#スコー
184178
// FIXME ^ コメントアウトしましょう
185179

186180
println!(&quot;outer long: {}&quot;, long_lived_binding);
187-
188-
// This binding also *shadows* the previous binding
189-
// この変数バインディングも以前に定義した変数を *シャドーイング* します
190-
let long_lived_binding = 'a';
191-
192-
println!(&quot;outer long: {}&quot;, long_lived_binding);
193181
}</code></pre></pre>
194-
<p>Also, <a href="https://en.wikipedia.org/wiki/Variable_shadowing">variable shadowing</a> is allowed.</p>
182+
<!--
183+
Also, [variable shadowing][variable-shadow] is allowed.
184+
-->
185+
<p>同様に、<a href="https://en.wikipedia.org/wiki/Variable_shadowing">変数のシャドーイング</a>も可能です。</p>
195186
<pre><pre class="playground"><code class="language-rust editable ignore mdbook-runnable edition2021">fn main() {
196187
let shadowed_binding = 1;
197188

198189
{
199190
println!(&quot;before being shadowed: {}&quot;, shadowed_binding);
200191

201192
// This binding *shadows* the outer one
193+
// この変数はスコープ外の同名の変数を *シャドーイング* します
202194
let shadowed_binding = &quot;abc&quot;;
203195

204196
println!(&quot;shadowed in inner block: {}&quot;, shadowed_binding);
205197
}
206198
println!(&quot;outside inner block: {}&quot;, shadowed_binding);
207199

208200
// This binding *shadows* the previous binding
201+
// この変数バインディングは以前に定義した変数を *シャドーイング* します
209202
let shadowed_binding = 2;
210203
println!(&quot;shadowed in outer block: {}&quot;, shadowed_binding);
211204
}</code></pre></pre>

0 commit comments

Comments
 (0)