diff --git a/src/ch13-04-performance.md b/src/ch13-04-performance.md index eacb1ba80..5d09bf294 100644 --- a/src/ch13-04-performance.md +++ b/src/ch13-04-performance.md @@ -1,8 +1,8 @@ ## Comparing Performance: Loops vs. Iterators -To determine whether to use loops or iterators, you need to know which version -of our `search` functions is faster: the version with an explicit `for` loop or -the version with iterators. +To determine whether to use loops or iterators, you need to know which +implementation is faster: the version of the `search` function with an explicit +`for` loop or the version with iterators. We ran a benchmark by loading the entire contents of *The Adventures of Sherlock Holmes* by Sir Arthur Conan Doyle into a `String` and looking for the