Skip to content

Commit 7e528cc

Browse files
Reword Buffer docs
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent eafd63c commit 7e528cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

library/core/src/iter/adapters/map_windows.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ struct MapWindowsInner<I: Iterator, const N: usize> {
3030
buffer: Option<Buffer<I::Item, N>>,
3131
}
3232

33-
/// `Buffer` uses two times of space to reduce moves among the iterations.
34-
/// `Buffer<T, N>` is semantically `[MaybeUninit<T>; 2 * N]`. However, due
33+
/// `Buffer<T, N>` is semantically `[MaybeUninit<T>; 2 * N]`. This helps
34+
/// reduce moves while iterating. However, due
3535
/// to limitations of const generics, we use this different type. Note that
3636
/// it has the same underlying memory layout.
3737
///

0 commit comments

Comments
 (0)