Skip to content

Commit

Permalink
Add missing .into_iter()
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Apr 26, 2024
1 parent 4df1303 commit 30b676c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/slice/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 30b676c

Please sign in to comment.