diff --git a/src/doc/guide-testing.md b/src/doc/guide-testing.md index 9d15f55f33f69c3b46ac4d3c2e5cc3cb5b3c6a63..4128ae9538b6a9a1543a20a84f9f6f0016f8791d 100644 --- a/src/doc/guide-testing.md +++ b/src/doc/guide-testing.md @@ -287,7 +287,7 @@ The benchmarking runner offers two ways to avoid this. Either, the closure that the `iter` method receives can return an arbitrary value which forces the optimizer to consider the result used and ensures it cannot remove the computation entirely. This could be done for the -example above by adjusting the `bh.iter` call to +example above by adjusting the `b.iter` call to ~~~ # struct X; impl X { fn iter(&self, _: || -> T) {} } let b = X;