Skip to content

Commit 036c3ba

Browse files
committed
Fix translation
1 parent 0fbce29 commit 036c3ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

1.6/ja/book/benchmark-tests.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<!-- Rust supports benchmark tests, which can test the performance of your -->
55
<!-- code. Let's make our `src/lib.rs` look like this (comments elided): -->
66
Rustはコードのパフォーマンスをテストできるベンチマークテストをサポートしています。
7-
早速、`src/lib.rc`を以下のように作っていきましょう(コメントは省略しています):
7+
早速、 `src/lib.rc` を以下のように作っていきましょう(コメントは省略しています):
88

99
```rust,ignore
1010
#![feature(test)]
@@ -139,7 +139,8 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured
139139
# struct X;
140140
# impl X { fn iter<T, F>(&self, _: F) where F: FnMut() -> T {} } let b = X;
141141
b.iter(|| {
142-
// note lack of `;` (could also use an explicit `return`).
142+
# // note lack of `;` (could also use an explicit `return`).
143+
// `;` が無いことに注意して下さい (明示的な `return` を使うこともできます)。
143144
(0..1000).fold(0, |old, new| old ^ new)
144145
});
145146
```

0 commit comments

Comments
 (0)