From 32518fa5d2bc83f425cad10135c4cc174dc38649 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 27 Jul 2024 01:39:27 +0700 Subject: [PATCH] doc: iter_batched_ref doctest invoked iter_batched (#795) Fixes #749. --- src/bencher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bencher.rs b/src/bencher.rs index 0d0544a8..73c232c1 100644 --- a/src/bencher.rs +++ b/src/bencher.rs @@ -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) /// }); /// } ///