fix partial_shuffle documentation (#1335)

This commit is contained in:
TheIronBorn 2023-08-24 03:07:56 -07:00 committed by GitHub
parent 5b990046d5
commit f3dd0b885c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.