Skip to content

Commit

Permalink
fixed doctest syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Plutone11011 committed Feb 10, 2025
1 parent 05b07aa commit 8d9cf61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dataset/impl_dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ where
/// ### Returns
///
/// A new shuffled version of the current Dataset
/// ```
///
pub fn shuffle<R: Rng>(&self, rng: &mut R) -> DatasetBase<Array2<F>, T::Owned> {
let mut indices = (0..self.nsamples()).collect::<Vec<_>>();
indices.shuffle(rng);
Expand Down

0 comments on commit 8d9cf61

Please sign in to comment.