We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b99004 commit f3dd0b8Copy full SHA for f3dd0b8
src/seq/mod.rs
@@ -274,7 +274,7 @@ pub trait SliceRandom {
274
///
275
/// If you only need to choose elements randomly and `amount > self.len()/2`
276
/// then you may improve performance by taking
277
- /// `amount = values.len() - amount` and using only the second slice.
+ /// `amount = self.len() - amount` and using only the second slice.
278
279
/// If `amount` is greater than the number of elements in the slice, this
280
/// will perform a full shuffle.
0 commit comments