fix partial_shuffle documentation (#1335)
This commit is contained in:
parent
5b990046d5
commit
f3dd0b885c
@ -274,7 +274,7 @@ pub trait SliceRandom {
|
||||
///
|
||||
/// If you only need to choose elements randomly and `amount > self.len()/2`
|
||||
/// then you may improve performance by taking
|
||||
/// `amount = values.len() - amount` and using only the second slice.
|
||||
/// `amount = self.len() - amount` and using only the second slice.
|
||||
///
|
||||
/// If `amount` is greater than the number of elements in the slice, this
|
||||
/// will perform a full shuffle.
|
||||
|
Loading…
x
Reference in New Issue
Block a user