Skip to content

Commit fc6c2e7

Browse files
committed
ci: generate pages at 3e945a5 [ci skip]
1 parent 3e945a5 commit fc6c2e7

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

docs/primitives/array.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,22 @@ <h1 id="配列とスライス"><a class="header" href="#配列とスライス">
211211
analyze_slice(&amp;ys[1 .. 4]);
212212

213213
// Example of empty slice `&amp;[]`:
214+
// 空のスライスの例:`&amp;[]`
214215
let empty_array: [u32; 0] = [];
215216
assert_eq!(&amp;empty_array, &amp;[]);
216217
assert_eq!(&amp;empty_array, &amp;[][..]); // Same but more verbose
218+
// 同じ意味だがより冗長な書き方
217219

218220
// Arrays can be safely accessed using `.get`, which returns an
219221
// `Option`. This can be matched as shown below, or used with
220222
// `.expect()` if you would like the program to exit with a nice
221223
// message instead of happily continue.
224+
// 配列は、`Option`を返す`.get`で安全にアクセスできます。
225+
// `Option`は以下のようにマッチさせることもできますし、
226+
// 運よく処理を続ける代わりに、`.expect()`で素敵なメッセージとともに
227+
// プログラムを終了することもできます。
222228
for i in 0..xs.len() + 1 { // Oops, one element too far!
229+
// おっと、1要素余分!
223230
match xs.get(i) {
224231
Some(xval) =&gt; println!(&quot;{}: {}&quot;, i, xval),
225232
None =&gt; println!(&quot;Slow down! {} is too far!&quot;, i),

docs/print.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,15 +1448,22 @@ <h1 id="配列とスライス"><a class="header" href="#配列とスライス">
14481448
analyze_slice(&amp;ys[1 .. 4]);
14491449

14501450
// Example of empty slice `&amp;[]`:
1451+
// 空のスライスの例:`&amp;[]`
14511452
let empty_array: [u32; 0] = [];
14521453
assert_eq!(&amp;empty_array, &amp;[]);
14531454
assert_eq!(&amp;empty_array, &amp;[][..]); // Same but more verbose
1455+
// 同じ意味だがより冗長な書き方
14541456

14551457
// Arrays can be safely accessed using `.get`, which returns an
14561458
// `Option`. This can be matched as shown below, or used with
14571459
// `.expect()` if you would like the program to exit with a nice
14581460
// message instead of happily continue.
1461+
// 配列は、`Option`を返す`.get`で安全にアクセスできます。
1462+
// `Option`は以下のようにマッチさせることもできますし、
1463+
// 運よく処理を続ける代わりに、`.expect()`で素敵なメッセージとともに
1464+
// プログラムを終了することもできます。
14591465
for i in 0..xs.len() + 1 { // Oops, one element too far!
1466+
// おっと、1要素余分!
14601467
match xs.get(i) {
14611468
Some(xval) =&gt; println!(&quot;{}: {}&quot;, i, xval),
14621469
None =&gt; println!(&quot;Slow down! {} is too far!&quot;, i),

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.

0 commit comments

Comments
 (0)