Skip to content

Commit ea97a56

Browse files
committed
generate
1 parent f661291 commit ea97a56

File tree

3 files changed

+228
-112
lines changed

3 files changed

+228
-112
lines changed

public/1.6/book/glossary.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,14 @@ <h3 id='arity' class='section-header'><a href='#arity'>Arity</a></h3>
222222

223223
<p>In the example above <code>x</code> and <code>y</code> have arity 2. <code>z</code> has arity 3.</p>
224224

225-
<h3 id='bounds' class='section-header'><a href='#bounds'>Bounds</a></h3>
226-
<p>Bounds are constraints on a type or <a href="traits.html">trait</a>. For example, if a bound
225+
<!-- ### Bounds -->
226+
227+
<h3 id='境界' class='section-header'><a href='#境界'>境界</a></h3>
228+
<!-- Bounds are constraints on a type or [trait][traits]. For example, if a bound
227229
is placed on the argument a function takes, types passed to that function
228-
must abide by that constraint.</p>
230+
must abide by that constraint. -->
231+
232+
<p>境界(Bounds)とはある1つの型または <a href="traits.html">トレイト</a> における制約のことです。例えば、ある関数がとる引数に境界が設定されたとすると、その関数に渡される型は設定された制約に必ず従わなければなりません。</p>
229233

230234
<h3 id='dst-dynamically-sized-type' class='section-header'><a href='#dst-dynamically-sized-type'>DST (Dynamically Sized Type)</a></h3>
231235
<p>A type without a statically known size or alignment. (<a href="../nomicon/exotic-sizes.html#dynamically-sized-types-dsts">more info</a>)</p>

public/1.6/book/strings.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,12 @@ <h2 id='インデクシング' class='section-header'><a href='#インデクシ
384384

385385
<!-- individual bytes, or as codepoints:-->
386386

387-
<p>普通、ベクターへの <code>[]</code> を用いたアクセスはとても高速です。
387+
<p>普通、ベクタへの <code>[]</code> を用いたアクセスはとても高速です。
388388
しかし、UTF-8にエンコードされた文字列中の一つ一つの文字は複数のバイトであることが可能なため、
389389
文字列のn番の文字を探すためには文字列上を移動していく必要があります。
390390
そのような作業はとても高コストな演算であり、誤解してはならない点です。
391391
さらに言えば、「文字」というものはUnicodeにおいては正確に定義されていません。
392-
文字列を、それぞれのバイトとして見ることも、コードポインの集まりとして見ることもできるのです</p>
392+
文字列を、それぞれのバイトとして見ることも、コードポイントの集まりとして見ることもできるのです</p>
393393
<span class='rusttest'>fn main() {
394394
let hachiko = &quot;忠犬ハチ公&quot;;
395395

@@ -436,9 +436,9 @@ <h2 id='インデクシング' class='section-header'><a href='#インデクシ
436436
<p>インデクシングするのと近い結果を以下の様にして得ることができます:</p>
437437
<span class='rusttest'>fn main() {
438438
let hachiko = &quot;忠犬ハチ公&quot;;
439-
let dog = hachiko.chars().nth(1); // kinda like hachiko[1]
439+
let dog = hachiko.chars().nth(1); // hachiko[1]のような感じで
440440
}</span><pre class='rust rust-example-rendered'>
441-
<span class='kw'>let</span> <span class='ident'>dog</span> <span class='op'>=</span> <span class='ident'>hachiko</span>.<span class='ident'>chars</span>().<span class='ident'>nth</span>(<span class='number'>1</span>); <span class='comment'>// kinda like hachiko[1]</span></pre>
441+
<span class='kw'>let</span> <span class='ident'>dog</span> <span class='op'>=</span> <span class='ident'>hachiko</span>.<span class='ident'>chars</span>().<span class='ident'>nth</span>(<span class='number'>1</span>); <span class='comment'>// hachiko[1]のような感じで</span></pre>
442442

443443
<!-- This emphasizes that we have to walk from the beginning of the list of `chars`. -->
444444

0 commit comments

Comments
 (0)