@@ -101,10 +101,10 @@ So, now that we've established that ranges are often not what you want, let's
101101talk about what you do want instead.
102102
103103There 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() {
246246These two basic iterators should serve you well. There are some more
247247advanced 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
250250we 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
255255a new iterator. The simplest one is called ` map ` :
256256
257257``` rust,ignore
@@ -280,7 +280,7 @@ doesn't print any numbers:
280280If you are trying to execute a closure on an iterator for its side effects,
281281just 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
284284iterator over the next ` n ` elements of the original iterator. Let's try it out
285285with an infinite iterator:
286286
@@ -329,7 +329,7 @@ a few times, and then consume the result. Check it out:
329329
330330This 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
333333can help you with. There are a number of really useful iterators, and you can
334334write your own as well. Iterators provide a safe, efficient way to manipulate
335335all kinds of lists. They're a little unusual at first, but if you play with
0 commit comments