Skip to content

Commit 5005a1d

Browse files
Fix broken link to Chapter 13-01 in Chapter 12-04 (#2025)
Fix broken link to Chapter 13-01 in Chapter 12-04
2 parents 871416b + 0ca4b88 commit 5005a1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ch12-04-testing-the-librarys-functionality.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> {
196196
</span>
197197

198198
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
200200
iterator in [Listing 3-5][ch3-iter]<!-- ignore -->, where we used a `for` loop
201201
with an iterator to run some code on each item in a collection.
202202

@@ -266,7 +266,7 @@ At this point, we could consider opportunities for refactoring the
266266
implementation of the search function while keeping the tests passing to
267267
maintain the same functionality. The code in the search function isn’t too bad,
268268
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
270270
explore iterators in detail, and look at how to improve it.
271271

272272
#### Using the `search` Function in the `run` Function
@@ -336,3 +336,4 @@ ch10-03-lifetime-syntax.html#validating-references-with-lifetimes
336336
[ch11-anatomy]: ch11-01-writing-tests.html#the-anatomy-of-a-test-function
337337
[ch10-lifetimes]: ch10-03-lifetime-syntax.html
338338
[ch3-iter]: ch03-05-control-flow.html#looping-through-a-collection-with-for
339+
[ch13-iterators]: ch13-02-iterators.html

0 commit comments

Comments
 (0)