Skip to content

Commit a56b5c7

Browse files
committed
Update ArrayOrVecHelper doc comments
1 parent d2e8dcc commit a56b5c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/lazy_buffer.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ impl MaybeConstUsize for usize {
9999
}
100100
}
101101

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

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

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

0 commit comments

Comments
 (0)