fix doc tests

master
Avril 4 years ago
parent 9cf85bd7fe
commit 9a64ec165b
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -22,23 +22,23 @@
/// The iterators returned from this method have these associated functions:
///
/// ## The length of the whole iterator
/// ```
/// ```ignore
/// pub const fn len(&self) -> usize
/// ```
///
/// ## The rest of the iterator that has not been consumed.
/// ```
/// ```ignore
/// pub fn rest(&self) -> &[T]
/// ```
///
/// ## The whole array.
/// All values that have not been consumed are initialised, values that have been consumed are uninitialised.
/// ```
/// ```ignore
/// pub fn array(&self) -> &[MaybeUninit<T>; Self::LEN]
/// ```
///
/// ## How many items have since been consumed.
/// ```
/// ```ignore
/// pub const fn consumed(&self) -> usize
/// ```
#[macro_export] macro_rules! iter {

Loading…
Cancel
Save