From 480d5f88c6156c7ec34707e9c2147e10b113c0ea Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 27 Mar 2019 00:27:09 -0400 Subject: [PATCH 1/1] Apply suggestions from code review Co-Authored-By: louy2 --- src/part10.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/part10.rs b/src/part10.rs index dc73d87..8563112 100644 --- a/src/part10.rs +++ b/src/part10.rs @@ -167,8 +167,8 @@ fn filter_vec_by_divisor(v: &Vec, divisor: i32) -> Vec { // **Exercise 10.2**: We started the journey in Part 02 with `SomethingOrNothing`, and later // learned about `Option` in Part 04. `Option` also has a `map` function. // [Read its documentation here.](https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.map) -// Which functions in previous Parts can you rewrite to use `map` instead? -// (Hint: read the source code of `map`, and see if the pattern appears in your own code) +// Which functions in previous parts can you rewrite to use `map` instead? +// (Hint: read the source code of `map`, and see if the pattern appears in your own code.) // (Bonus: [`test_invariant` in Part 05](part05.html#section-6) doesn't use `match`, // but can you still find a way to rewrite it with `map`?) -- 2.30.2