diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2024-04-26 21:18:00 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2024-04-26 21:18:00 +0200 |
| commit | 30b676cc00324c16963ef529ba37b49e0200ac5f (patch) | |
| tree | 32c0e4013d5310ae8f4f995c627665db2d4dd250 | |
| parent | 4df1303cff1eeb3b0c7f00d70fecf160279e7263 (diff) | |
Add missing .into_iter()
| -rw-r--r-- | library/core/src/slice/raw.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/slice/raw.rs b/library/core/src/slice/raw.rs index efdd210c1fa..a42c2cc4e63 100644 --- a/library/core/src/slice/raw.rs +++ b/library/core/src/slice/raw.rs @@ -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(): |
