From be08d35c8f7ad93912e2aae794c79e4ab75f9c0f Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Mon, 20 Apr 2015 08:57:06 -0400 Subject: [PATCH] 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 --- src/liballoc/arc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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 { -- 2.44.0