Skip to content

Commit

Permalink
fix partial_shuffle documentation (#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIronBorn committed Aug 24, 2023
1 parent 5b99004 commit f3dd0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/seq/mod.rs
Expand Up @@ -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.
Expand Down

0 comments on commit f3dd0b8

Please sign in to comment.