projects
/
rust-101.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
480d5f8
)
Remove paren around bonus question
author
Yufan Lou
<loganlyf@gmail.com>
Wed, 27 Mar 2019 04:30:04 +0000
(
00:30
-0400)
committer
GitHub
<noreply@github.com>
Wed, 27 Mar 2019 04:30:04 +0000
(
00:30
-0400)
src/part10.rs
patch
|
blob
|
history
diff --git
a/src/part10.rs
b/src/part10.rs
index 85631127ca87b8b0f20bd90443aec017215cb510..2ba31f3904a850588532f2a821585f4a8dfecbcf 100644
(file)
--- a/
src/part10.rs
+++ b/
src/part10.rs
@@
-169,8
+169,8
@@
fn filter_vec_by_divisor(v: &Vec<i32>, divisor: i32) -> Vec<i32> {
// [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.)
// [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.)
-//
(
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`?
)
+// 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`?
//@ [index](main.html) | [previous](part09.html) | [raw source](workspace/src/part10.rs) |
//@ [next](part11.html)
//@ [index](main.html) | [previous](part09.html) | [raw source](workspace/src/part10.rs) |
//@ [next](part11.html)