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
This commit is contained in:
@@ -103,7 +103,7 @@ use heap::deallocate;
|
|||||||
/// use std::thread;
|
/// use std::thread;
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// 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);
|
/// let shared_numbers = Arc::new(numbers);
|
||||||
///
|
///
|
||||||
/// for _ in 0..10 {
|
/// for _ in 0..10 {
|
||||||
|
|||||||
Reference in New Issue
Block a user