Add missing .into_iter()
This commit is contained in:
parent
4df1303cff
commit
30b676cc00
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ use crate::ub_checks;
|
|||
/// // SAFETY: see function docstring.
|
||||
/// unsafe { slice::from_raw_parts(ptr, len) }
|
||||
/// };
|
||||
/// data.sum()
|
||||
/// data.into_iter().sum()
|
||||
/// }
|
||||
///
|
||||
/// // This could be the result of C++'s std::vector::data():
|
||||
|
|
Loading…
Add table
Reference in a new issue