@@ -100,7 +100,7 @@ hello.rs:4 }
100
100
```
101
101
102
102
<!-- 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 -->
104
104
<!-- nothing after that last comment. -->
105
105
この [ 残念なエラー] ( https://github.com/rust-lang/rust/issues/22547 ) は正しいのです。ドキュメンテーションコメントはそれらの後のものに適用されるところ、その最後のコメントの後には何もないからです。
106
106
@@ -163,7 +163,7 @@ Rustにおいて、関数の回復不可能な誤用(つまり、プログラ
163
163
もし関数にこのような、パニックによって検出されたり強制されたりするような自明でない取決めがあるときには、ドキュメントを作成することは非常に重要です。
164
164
165
165
``` rust
166
- /// # Failures
166
+ /// # Errors
167
167
# fn foo () {}
168
168
```
169
169
@@ -250,7 +250,7 @@ Rustにおいて、関数の回復不可能な誤用(つまり、プログラ
250
250
```
251
251
252
252
<!-- 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`. -->
254
254
これは、使われている言語が何であるかに応じてハイライトされます。
255
255
もし単なるプレーンテキストを書いているのであれば、 ` text ` を選択してください。
256
256
@@ -355,7 +355,7 @@ fn main() {
355
355
<!-- can use this to your advantage. In this case, documentation comments need -->
356
356
<!-- to apply to some kind of function, so if I want to show you just a -->
357
357
<!-- 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 -->
359
359
<!-- it makes the example more clear. You can use this technique to explain -->
360
360
<!-- longer examples in detail, while still preserving the testability of your -->
361
361
<!-- documentation. -->
@@ -488,7 +488,7 @@ macro_rules! panic_unless {
488
488
489
489
``` rust,ignore
490
490
/// use std::io;
491
- /// let mut input = String::new();
491
+ /// let mut input = String::new();
492
492
/// try!(io::stdin().read_line(&mut input));
493
493
```
494
494
@@ -503,7 +503,7 @@ macro_rules! panic_unless {
503
503
/// ```
504
504
/// use std::io;
505
505
/// # fn foo() -> io::Result<()> {
506
- /// let mut input = String::new();
506
+ /// let mut input = String::new();
507
507
/// try!(io::stdin().read_line(&mut input));
508
508
/// # Ok(())
509
509
/// # }
@@ -648,8 +648,8 @@ mod foo {
648
648
# fn foo () {}
649
649
```
650
650
651
- <!-- is just -->
652
- これは、単にこうします 。
651
+ <!-- is -->
652
+ これは、こうします 。
653
653
654
654
~~~ markdown
655
655
# Examples
0 commit comments