Add missing .into_iter()

This commit is contained in:
Matthias Geier 2024-04-26 21:18:00 +02:00
parent 4df1303cff
commit 30b676cc00

View file

@ -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():