We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a4015a commit 70ffaaaCopy full SHA for 70ffaaa
src/seq.rs
@@ -17,8 +17,9 @@ use std::collections::hash_map::HashMap;
17
///
18
/// The following can be returned:
19
/// - `Ok`: `Vec` of `amount` non-repeating randomly sampled elements. The order is not random.
20
-/// - `Err`: `Vec` of *less than* `amount` elements in sequential order. This is considered an
21
-/// error since exactly `amount` elements is typically expected.
+/// - `Err`: `Vec` of all the elements from `iterable` in sequential order. This happens when the
+/// length of `iterable` was less than `amount`. This is considered an error since exactly
22
+/// `amount` elements is typically expected.
23
24
/// This implementation uses `O(len(iterable))` time and `O(amount)` memory.
25
0 commit comments