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:
parent
5910dc0e8e
commit
be08d35c8f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue