diff options
| author | Corey Farwell <coreyf@rwell.org> | 2015-04-20 08:57:06 -0400 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2015-04-20 08:57:06 -0400 |
| commit | be08d35c8f7ad93912e2aae794c79e4ab75f9c0f (patch) | |
| tree | 45fab2d2cbbcd5955199795aa59c29ed51aeb3a6 /src/liballoc | |
| parent | 5910dc0e8e396a4af7b948b83bab03f27b414a0e (diff) | |
| download | rust-be08d35c8f7ad93912e2aae794c79e4ab75f9c0f.tar.gz rust-be08d35c8f7ad93912e2aae794c79e4ab75f9c0f.zip | |
Simplify alloc::arc::Arc example in doc-comment
As far as I can tell, this conversion to integer to floating point does not need to happen and is beside the point
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/arc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index 0cfdcd2413f..3afc34be2ca 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -103,7 +103,7 @@ use heap::deallocate; /// use std::thread; /// /// fn main() { -/// let numbers: Vec<_> = (0..100u32).map(|i| i as f32).collect(); +/// let numbers: Vec<_> = (0..100u32).collect(); /// let shared_numbers = Arc::new(numbers); /// /// for _ in 0..10 { |
