mirror of
https://github.com/rust-lang/book.git
synced 2026-12-03 05:15:07 -06:00
Reword to avoid awkward pluralization
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user