@@ -196,7 +196,7 @@ pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> {
196
196
</span >
197
197
198
198
The ` lines ` method returns an iterator. We’ll talk about iterators in depth in
199
- [ Chapter 13] [ ch13 ] <!-- ignore --> , but recall that you saw this way of using an
199
+ [ Chapter 13] [ ch13-iterators ] <!-- ignore --> , but recall that you saw this way of using an
200
200
iterator in [ Listing 3-5] [ ch3-iter ] <!-- ignore --> , where we used a ` for ` loop
201
201
with an iterator to run some code on each item in a collection.
202
202
@@ -266,7 +266,7 @@ At this point, we could consider opportunities for refactoring the
266
266
implementation of the search function while keeping the tests passing to
267
267
maintain the same functionality. The code in the search function isn’t too bad,
268
268
but it doesn’t take advantage of some useful features of iterators. We’ll
269
- return to this example in [ Chapter 13] [ ch13 ] <!-- ignore --> , where we’ll
269
+ return to this example in [ Chapter 13] [ ch13-iterators ] <!-- ignore --> , where we’ll
270
270
explore iterators in detail, and look at how to improve it.
271
271
272
272
#### Using the ` search ` Function in the ` run ` Function
@@ -336,3 +336,4 @@ ch10-03-lifetime-syntax.html#validating-references-with-lifetimes
336
336
[ ch11-anatomy ] : ch11-01-writing-tests.html#the-anatomy-of-a-test-function
337
337
[ ch10-lifetimes ] : ch10-03-lifetime-syntax.html
338
338
[ ch3-iter ] : ch03-05-control-flow.html#looping-through-a-collection-with-for
339
+ [ ch13-iterators ] : ch13-02-iterators.html
0 commit comments