Skip to content

Commit 0b96072

Browse files
committed
Update ArrayOrVecHelper doc comments
1 parent 57fff6e commit 0b96072

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lazy_buffer.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ impl MaybeConstUsize for usize {
100100
}
101101
}
102102

103-
/// A type holding indices of elements in a pool or buffer of items from an inner iterator
104-
/// and used to pick out different combinations in a generic way.
103+
/// A type holding indices, mostly used to pick out different combinations of elements from
104+
/// a pool or buffer of items from an inner iterator in a generic way.
105105
pub trait ArrayOrVecHelper: BorrowMut<[usize]> {
106106
type Item<T>;
107107
type Length: MaybeConstUsize;
@@ -118,6 +118,7 @@ pub trait ArrayOrVecHelper: BorrowMut<[usize]> {
118118

119119
fn from_fn<F: Fn(usize) -> usize>(k: Self::Length, f: F) -> Self;
120120

121+
/// Create an array/vec/... of indices from 0 to `len - 1`.
121122
fn start(len: Self::Length) -> Self
122123
where
123124
Self: Sized,

0 commit comments

Comments
 (0)