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 2a5af32 commit f5305c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 f5305c1

Please sign in to comment.