Skip to content

Commit 6ab15dc

Browse files
frewsxcvsteveklabnik
authored andcommitted
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
1 parent abbd9dc commit 6ab15dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ use heap::deallocate;
102102
/// use std::thread;
103103
///
104104
/// fn main() {
105-
/// let numbers: Vec<_> = (0..100u32).map(|i| i as f32).collect();
105+
/// let numbers: Vec<_> = (0..100u32).collect();
106106
/// let shared_numbers = Arc::new(numbers);
107107
///
108108
/// for _ in 0..10 {

0 commit comments

Comments
 (0)