Skip to content

Commit f5305c1

Browse files
committed
Add missing .into_iter()
1 parent 2a5af32 commit f5305c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)