Skip to content

Commit

Permalink
doc: iter_batched_ref doctest invoked iter_batched (#795)
Browse files Browse the repository at this point in the history
Fixes #749.
  • Loading branch information
waywardmonkeys committed Jul 26, 2024
1 parent 2d955de commit 32518fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bencher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ impl<'a, M: Measurement> Bencher<'a, M> {
///
/// c.bench_function("with_setup", move |b| {
/// // This will avoid timing the clone call.
/// b.iter_batched(|| data.clone(), |mut data| sort(&mut data), BatchSize::SmallInput)
/// b.iter_batched_ref(|| data.clone(), |mut data| sort(&mut data), BatchSize::SmallInput)
/// });
/// }
///
Expand Down

0 comments on commit 32518fa

Please sign in to comment.