Skip to content

Commit 6bff154

Browse files
committed
Replace 'adapters' to 'adaptors' in TRPL book
Regarding #29063: Replace 'iterator adapters' appearances to 'iterator adaptors', thus embracing the terminology used along the API docs and achieving consistency between both sources.
1 parent 56a1419 commit 6bff154

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/doc/trpl/iterators.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ So, now that we've established that ranges are often not what you want, let's
101101
talk about what you do want instead.
102102

103103
There are three broad classes of things that are relevant here: iterators,
104-
*iterator adapters*, and *consumers*. Here's some definitions:
104+
*iterator adaptors*, and *consumers*. Here's some definitions:
105105

106106
* *iterators* give you a sequence of values.
107-
* *iterator adapters* operate on an iterator, producing a new iterator with a
107+
* *iterator adaptors* operate on an iterator, producing a new iterator with a
108108
different output sequence.
109109
* *consumers* operate on an iterator, producing some final set of values.
110110

@@ -246,12 +246,12 @@ for num in nums.iter() {
246246
These two basic iterators should serve you well. There are some more
247247
advanced iterators, including ones that are infinite.
248248

249-
That's enough about iterators. Iterator adapters are the last concept
249+
That's enough about iterators. Iterator adaptors are the last concept
250250
we need to talk about with regards to iterators. Let's get to it!
251251

252-
## Iterator adapters
252+
## Iterator adaptors
253253

254-
*Iterator adapters* take an iterator and modify it somehow, producing
254+
*Iterator adaptors* take an iterator and modify it somehow, producing
255255
a new iterator. The simplest one is called `map`:
256256

257257
```rust,ignore
@@ -280,7 +280,7 @@ doesn't print any numbers:
280280
If you are trying to execute a closure on an iterator for its side effects,
281281
just use `for` instead.
282282

283-
There are tons of interesting iterator adapters. `take(n)` will return an
283+
There are tons of interesting iterator adaptors. `take(n)` will return an
284284
iterator over the next `n` elements of the original iterator. Let's try it out
285285
with an infinite iterator:
286286

@@ -329,7 +329,7 @@ a few times, and then consume the result. Check it out:
329329

330330
This will give you a vector containing `6`, `12`, `18`, `24`, and `30`.
331331

332-
This is just a small taste of what iterators, iterator adapters, and consumers
332+
This is just a small taste of what iterators, iterator adaptors, and consumers
333333
can help you with. There are a number of really useful iterators, and you can
334334
write your own as well. Iterators provide a safe, efficient way to manipulate
335335
all kinds of lists. They're a little unusual at first, but if you play with

0 commit comments

Comments
 (0)