Skip to content

Commit 30b676c

Browse files
committed
Add missing .into_iter()
1 parent 4df1303 commit 30b676c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/slice/raw.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ use crate::ub_checks;
106106
/// // SAFETY: see function docstring.
107107
/// unsafe { slice::from_raw_parts(ptr, len) }
108108
/// };
109-
/// data.sum()
109+
/// data.into_iter().sum()
110110
/// }
111111
///
112112
/// // This could be the result of C++'s std::vector::data():

0 commit comments

Comments
 (0)