Update docs.
This commit is contained in:
parent
1acb44f03c
commit
eb3fc45c87
2 changed files with 2 additions and 4 deletions
|
@ -606,8 +606,7 @@ mod prim_pointer {}
|
|||
/// println!("array[{}] = {}", i, x);
|
||||
/// }
|
||||
///
|
||||
/// // You can explicitly iterate an array by value using
|
||||
/// // `IntoIterator::into_iter` or `std::array::IntoIter::new`:
|
||||
/// // You can explicitly iterate an array by value using `IntoIterator::into_iter`
|
||||
/// for item in IntoIterator::into_iter(array).enumerate() {
|
||||
/// let (i, x): (usize, i32) = item;
|
||||
/// println!("array[{}] = {}", i, x);
|
||||
|
|
|
@ -606,8 +606,7 @@ mod prim_pointer {}
|
|||
/// println!("array[{}] = {}", i, x);
|
||||
/// }
|
||||
///
|
||||
/// // You can explicitly iterate an array by value using
|
||||
/// // `IntoIterator::into_iter` or `std::array::IntoIter::new`:
|
||||
/// // You can explicitly iterate an array by value using `IntoIterator::into_iter`
|
||||
/// for item in IntoIterator::into_iter(array).enumerate() {
|
||||
/// let (i, x): (usize, i32) = item;
|
||||
/// println!("array[{}] = {}", i, x);
|
||||
|
|
Loading…
Add table
Reference in a new issue