Skip to content

Commit bffd063

Browse files
committed
update documentation
1 parent ef0b473 commit bffd063

File tree

2 files changed

+8
-101
lines changed

2 files changed

+8
-101
lines changed

1.9/ja/book/documentation.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ hello.rs:4 }
100100
```
101101

102102
<!-- This [unfortunate error](https://github.com/rust-lang/rust/issues/22547) is -->
103-
<!-- correct: documentation comments apply to the thing after them, and there's -->
103+
<!-- correct; documentation comments apply to the thing after them, and there's -->
104104
<!-- nothing after that last comment. -->
105105
この [残念なエラー](https://github.com/rust-lang/rust/issues/22547) は正しいのです。ドキュメンテーションコメントはそれらの後のものに適用されるところ、その最後のコメントの後には何もないからです。
106106

@@ -163,7 +163,7 @@ Rustにおいて、関数の回復不可能な誤用(つまり、プログラ
163163
もし関数にこのような、パニックによって検出されたり強制されたりするような自明でない取決めがあるときには、ドキュメントを作成することは非常に重要です。
164164

165165
```rust
166-
/// # Failures
166+
/// # Errors
167167
# fn foo() {}
168168
```
169169

@@ -250,7 +250,7 @@ Rustにおいて、関数の回復不可能な誤用(つまり、プログラ
250250
```
251251

252252
<!-- This will highlight according to whatever language you're showing off. -->
253-
<!-- If you're just showing plain text, choose `text`. -->
253+
<!-- If you're only showing plain text, choose `text`. -->
254254
これは、使われている言語が何であるかに応じてハイライトされます。
255255
もし単なるプレーンテキストを書いているのであれば、 `text` を選択してください。
256256

@@ -355,7 +355,7 @@ fn main() {
355355
<!-- can use this to your advantage. In this case, documentation comments need -->
356356
<!-- to apply to some kind of function, so if I want to show you just a -->
357357
<!-- documentation comment, I need to add a little function definition below -->
358-
<!-- it. At the same time, it's just there to satisfy the compiler, so hiding -->
358+
<!-- it. At the same time, it's only there to satisfy the compiler, so hiding -->
359359
<!-- it makes the example more clear. You can use this technique to explain -->
360360
<!-- longer examples in detail, while still preserving the testability of your -->
361361
<!-- documentation. -->
@@ -488,7 +488,7 @@ macro_rules! panic_unless {
488488

489489
```rust,ignore
490490
/// use std::io;
491-
/// let mut input = String::new();
491+
/// let mut input = String::new();
492492
/// try!(io::stdin().read_line(&mut input));
493493
```
494494

@@ -503,7 +503,7 @@ macro_rules! panic_unless {
503503
/// ```
504504
/// use std::io;
505505
/// # fn foo() -> io::Result<()> {
506-
/// let mut input = String::new();
506+
/// let mut input = String::new();
507507
/// try!(io::stdin().read_line(&mut input));
508508
/// # Ok(())
509509
/// # }
@@ -648,8 +648,8 @@ mod foo {
648648
# fn foo() {}
649649
```
650650

651-
<!-- is just -->
652-
これは、単にこうします
651+
<!-- is -->
652+
これは、こうします
653653

654654
~~~markdown
655655
# Examples

diff-1.6.0..1.9.0/src/doc/book/documentation.md

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)