@@ -111,7 +111,7 @@ trait. Some of these methods call the `next` method in their definition, which
111111is why you’re required to implement the ` next ` method when implementing the
112112` Iterator ` trait.
113113
114- Methods that call ` next ` are called * consuming adaptors * , because calling them
114+ Methods that call ` next ` are called * consuming adapters * , because calling them
115115uses up the iterator. One example is the ` sum ` method, which takes ownership of
116116the iterator and iterates through the items by repeatedly calling ` next ` , thus
117117consuming the iterator. As it iterates through, it adds each item to a running
@@ -131,17 +131,17 @@ ownership of the iterator we call it on.
131131
132132### Methods that Produce Other Iterators
133133
134- * Iterator adaptors * are methods defined on the ` Iterator ` trait that don’t
134+ * Iterator adapters * are methods defined on the ` Iterator ` trait that don’t
135135consume the iterator. Instead, they produce different iterators by changing
136136some aspect of the original iterator.
137137
138- Listing 13-14 shows an example of calling the iterator adaptor method ` map ` ,
138+ Listing 13-14 shows an example of calling the iterator adapter method ` map ` ,
139139which takes a closure to call on each item as the items are iterated through.
140140The ` map ` method returns a new iterator that produces the modified items. The
141141closure here creates a new iterator in which each item from the vector will be
142142incremented by 1:
143143
144- <Listing number =" 13-14 " file-name =" src/main.rs " caption =" Calling the iterator adaptor `map` to create a new iterator " >
144+ <Listing number =" 13-14 " file-name =" src/main.rs " caption =" Calling the iterator adapter `map` to create a new iterator " >
145145
146146``` rust,not_desired_behavior
147147{{#rustdoc_include ../listings/ch13-functional-features/listing-13-14/src/main.rs:here}}
@@ -156,7 +156,7 @@ However, this code produces a warning:
156156```
157157
158158The code in Listing 13-14 doesn’t do anything; the closure we’ve specified
159- never gets called. The warning reminds us why: iterator adaptors are lazy, and
159+ never gets called. The warning reminds us why: iterator adapters are lazy, and
160160we need to consume the iterator here.
161161
162162To fix this warning and consume the iterator, we’ll use the ` collect ` method,
@@ -181,9 +181,9 @@ on each item. This is a great example of how closures let you customize some
181181behavior while reusing the iteration behavior that the ` Iterator ` trait
182182provides.
183183
184- You can chain multiple calls to iterator adaptors to perform complex actions in
184+ You can chain multiple calls to iterator adapters to perform complex actions in
185185a readable way. But because all iterators are lazy, you have to call one of the
186- consuming adaptor methods to get results from calls to iterator adaptors .
186+ consuming adapter methods to get results from calls to iterator adapters .
187187
188188### Using Closures that Capture Their Environment
189189
0 commit comments