diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-01-13 10:40:18 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-01-17 10:51:07 -0500 |
| commit | 899ffcf62adde4cef2af0d543fc3fa627396a586 (patch) | |
| tree | a705271031fc4bfb5e3bbccc99c012145088f25b /src/doc/trpl/testing.md | |
| parent | 078bd498b9fa6eab40df147ce6015ab9aae62b40 (diff) | |
| download | rust-899ffcf62adde4cef2af0d543fc3fa627396a586.tar.gz rust-899ffcf62adde4cef2af0d543fc3fa627396a586.zip | |
Intpocalypse, book edition.
Fix all usage of int/uint/i/u in the book.
Diffstat (limited to 'src/doc/trpl/testing.md')
| -rw-r--r-- | src/doc/trpl/testing.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/trpl/testing.md b/src/doc/trpl/testing.md index aefc7d7aa3d..fa40b7e8490 100644 --- a/src/doc/trpl/testing.md +++ b/src/doc/trpl/testing.md @@ -512,7 +512,7 @@ use test::Bencher; #[bench] fn bench_xor_1000_ints(b: &mut Bencher) { b.iter(|| { - range(0u, 1000).fold(0, |old, new| old ^ new); + range(0, 1000).fold(0, |old, new| old ^ new); }); } ``` @@ -537,7 +537,7 @@ computation entirely. This could be done for the example above by adjusting the # impl X { fn iter<T, F>(&self, _: F) where F: FnMut() -> T {} } let b = X; b.iter(|| { // note lack of `;` (could also use an explicit `return`). - range(0u, 1000).fold(0, |old, new| old ^ new) + range(0, 1000).fold(0, |old, new| old ^ new) }); ``` |
