Skip to content

Commit 6587ef1

Browse files
authored
Merge pull request #92 from toku-sa-n/fix_links
Fix links
2 parents fd1cc18 + 23af680 commit 6587ef1

6 files changed

+18
-18
lines changed

src/appendix-01-keywords.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ higher-ranked lifetimeについては議論の余地ありか
120120
* `where` - 型を制限する節に言及する
121121
* `while` - 式の結果に基づいて条件的にループする
122122

123-
[union]: ../reference/items/unions.html
123+
[union]: https://doc.rust-lang.org/reference/items/unions.html
124124

125125
<!--
126126
### Keywords Reserved for Future Use

src/ch02-00-guessing-game-tutorial.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ program will indicate whether the guess is too low or too high. If the guess is
2525
correct, the game will print a congratulatory message and exit.
2626
-->
2727

28-
古典的な初心者向けのプログラミング問題を実装してみましょう: 数当てゲームです。
28+
古典的な初心者向けのプログラミング問題を実装してみましょう: 数当てゲームです。
2929
これは以下のように動作します: プログラムは1から100までの乱数整数を生成します。
3030
そしてプレーヤーに予想を入力するよう促します。予想を入力したら、プログラムは、
3131
その予想が小さすぎたか大きすぎたかを出力します。予想が当たっていれば、ゲームは祝福メッセージを表示し、
@@ -219,7 +219,7 @@ features, including the ability to accept user input.
219219
もし、使用したい型がpreludeにない場合は、`use`文で明示的にその型をスコープに導入する必要があります。
220220
`std::io`ライブラリを使用することで、ユーザ入力を受け付ける能力などの実用的な機能の多くを使用することができます。
221221

222-
[prelude]: ../../std/prelude/index.html
222+
[prelude]: https://doc.rust-lang.org/std/prelude/index.html
223223

224224
<!--
225225
As you saw in Chapter 1, the `main` function is the entry point into the
@@ -332,7 +332,7 @@ library that is a growable, UTF-8 encoded bit of text.
332332
[`String`][string]<!-- ignore -->型は、標準ライブラリによって提供される文字列型で、
333333
サイズ可変、UTF-8エンコードされたテキスト破片になります。
334334

335-
[string]: ../../std/string/struct.String.html
335+
[string]: https://doc.rust-lang.org/std/string/struct.String.html
336336

337337
<!--
338338
The `::` syntax in the `::new` line indicates that `new` is an *associated
@@ -387,7 +387,7 @@ type that represents a handle to the standard input for your terminal.
387387
この`stdin`関数は、 [`std::io::Stdin`][iostdin]<!-- ignore -->オブジェクトを返し、この型は、
388388
ターミナルの標準入力へのハンドルを表す型になります。
389389

390-
[iostdin]: ../../std/io/struct.Stdin.html
390+
[iostdin]: https://doc.rust-lang.org/std/io/struct.Stdin.html
391391

392392
<!--
393393
The next part of the code, `.read_line(&mut guess)`, calls the
@@ -399,7 +399,7 @@ guess`.
399399
その次のコード片、`.read_line(&mut guess)`は、標準入力ハンドルの[`read_line`][read_line]<!-- ignore -->
400400
メソッドを呼び出して、ユーザから入力を受け付けます。また、`read_line`メソッドに対して、`&mut guess`という引数を一つ渡していますね。
401401

402-
[read_line]: ../../std/io/struct.Stdin.html#method.read_line
402+
[read_line]: https://doc.rust-lang.org/std/io/struct.Stdin.html#method.read_line
403403

404404
<!--
405405
The job of `read_line` is to take whatever the user types into standard input
@@ -485,8 +485,8 @@ well as specific versions for submodules, such as `io::Result`.
485485
標準ライブラリにたくさんあります: 汎用の[`Result`][result]<!-- ignore -->の他、
486486
`io::Result`などのサブモジュール用に特化したものまで。
487487

488-
[ioresult]: ../../std/io/type.Result.html
489-
[result]: ../../std/result/enum.Result.html
488+
[ioresult]: https://doc.rust-lang.org/std/io/type.Result.html
489+
[result]: https://doc.rust-lang.org/std/result/enum.Result.html
490490

491491
<!--
492492
The `Result` types are [*enumerations*][enums], often referred
@@ -535,7 +535,7 @@ entered into standard input.
535535
返り値を取り出して、ただその値を返すので、これを使用することができるでしょう。
536536
今回の場合、その返り値とは、ユーザが標準入力に入力したデータのバイト数になります。
537537

538-
[expect]: ../../std/result/enum.Result.html#method.expect
538+
[expect]: https://doc.rust-lang.org/std/result/enum.Result.html#method.expect
539539

540540
<!--
541541
If you don’t call `expect`, the program will compile, but we’ll get a warning:
@@ -745,7 +745,7 @@ $ cargo build
745745
Compiling libc v0.2.14 (libc v0.2.14をコンパイルしています)
746746
Compiling rand v0.3.14 (rand v0.3.14をコンパイルしています)
747747
Compiling guessing_game v0.1.0 (file:///projects/guessing_game) (guessing_game v0.1.0をコンパイルしています)
748-
Finished dev [unoptimized + debuginfo] target(s) in 2.53 secs
748+
Finished dev [unoptimized + debuginfo] target(s) in 2.53 secs
749749
```
750750

751751
<!--
@@ -1180,7 +1180,7 @@ in `guess` and `secret_number`.
11801180
それから、一番下に新しく5行追加して`Ordering`型を使用しています。`cmp`メソッドは、
11811181
2値を比較し、比較できるものに対してなら何に対しても呼び出せます。このメソッドは、
11821182
比較したいものへの参照を取ります: ここでは、`guess`変数と`secret_number`変数を比較しています。
1183-
それからこのメソッドは`use`文でスコープに導入した`Ordering`列挙型の値を返します。
1183+
それからこのメソッドは`use`文でスコープに導入した`Ordering`列挙型の値を返します。
11841184
[`match`][match]<!-- ignore -->式を使用して、`guess`変数と`secret_number``cmp`に渡して返ってきた`Ordering`の列挙子に基づき、
11851185
次の動作を決定しています。
11861186

@@ -1380,7 +1380,7 @@ Rustには、組み込みの数値型がいくつかあります; ここの`u32`
13801380
`secret_number`変数も`u32`型であるとコンパイラが推論することを意味します。
13811381
従って、今では比較が同じ型の2つの値で行われることになるわけです!
13821382

1383-
[parse]: ../../std/primitive.str.html#method.parse
1383+
[parse]: https://doc.rust-lang.org/std/primitive.str.html#method.parse
13841384

13851385
<!--
13861386
The call to `parse` could easily cause an error. If, for example, the string

src/ch06-01-defining-an-enum.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ variant:
246246
私たちが定義し、使用したのと全く同じenumと列挙子がありますが、アドレスデータを二種の異なる構造体の形で列挙子に埋め込み、
247247
この構造体は各列挙子用に異なる形で定義されています。
248248

249-
[IpAddr]: ../../std/net/enum.IpAddr.html
249+
[IpAddr]: https://doc.rust-lang.org/std/net/enum.IpAddr.html
250250

251251
<!--
252252
```rust
@@ -531,7 +531,7 @@ as follows:
531531
値が存在するか不在かという概念をコード化するenumならあります。このenumが`Option<T>`で、
532532
以下のように[標準ライブラリに定義][option]されています。
533533

534-
[option]: ../../std/option/enum.Option.html
534+
[option]: https://doc.rust-lang.org/std/option/enum.Option.html
535535

536536
```rust
537537
enum Option<T> {
@@ -686,7 +686,7 @@ the methods on `Option<T>` will be extremely useful in your journey with Rust.
686686
[ドキュメント][docs]でそれらを確認できます。`Option<T>`のメソッドに馴染むと、
687687
Rustの旅が極めて有益になるでしょう。
688688

689-
[docs]: ../../std/option/enum.Option.html
689+
[docs]: https://doc.rust-lang.org/std/option/enum.Option.html
690690

691691
<!--
692692
In general, in order to use an `Option<T>` value, you want to have code that

src/ch07-04-bringing-paths-into-scope-with-the-use-keyword.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ library documentation](../std/prelude/index.html#other-preludes)
497497
for more information on that pattern.
498498
-->
499499
glob演算子はしばしば、テストの際、テストされるあらゆるものを`tests`モジュールに持ち込むために使われます。これについては11章[テストの書き方][writing-tests]の節で話します。
500-
glob演算子はプレリュードパターンの一部としても使われることがあります:そのようなパターンについて、より詳しくは[標準ライブラリのドキュメント](../std/prelude/index.html#other-preludes)をご覧ください。
500+
glob演算子はプレリュードパターンの一部としても使われることがあります:そのようなパターンについて、より詳しくは[標準ライブラリのドキュメント](https://doc.rust-lang.org/std/prelude/index.html#other-preludes)をご覧ください。
501501

502502
[rand]: ch02-00-guessing-game-tutorial.html#generating-a-random-number
503503
[writing-tests]: ch11-01-writing-tests.html#how-to-write-tests

src/ch08-00-common-collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ see [the documentation][collections].
4545
標準ライブラリで提供されている他の種のコレクションについて学ぶには、
4646
[ドキュメント][collections]を参照されたし。
4747

48-
[collections]: ../../std/collections/index.html
48+
[collections]: https://doc.rust-lang.org/std/collections/index.html
4949

5050
<!--
5151
We’ll discuss how to create and update vectors, strings, and hash maps, as well

src/ch11-01-writing-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Benchmark tests are, as of this writing, only available in nightly Rust. See
189189
ベンチマークテストは、本書記述の時点では、nightly版のRustでのみ利用可能です。
190190
詳しくは、[ベンチマークテストのドキュメンテーション][bench]を参照されたし。
191191

192-
[bench]: ../unstable-book/library-features/test.html
192+
[bench]: https://doc.rust-lang.org/unstable-book/library-features/test.html
193193

194194
<!--
195195
The next part of the test output, which starts with `Doc-tests adder`, is for

0 commit comments

Comments
 (0)