Closed hamirmahal closed 1 year ago
main
quizzes/ch13-02-iterators.toml
URL to the section(s) of the book with this problem: https://rust-book.cs.brown.edu/ch13-02-iterators.html#using-closures-that-capture-their-environment
Description of the problem: The Context for Question 3 has typo.
Context
Question 3
Therefore the closure in map takes &i32 as input. The multiplication operator is implemented for &i32, so x does not need to be dereferences in x 2.
Suggested fix: Change the above sentence like so.
Therefore the closure in map takes &i32 as input. The multiplication operator is implemented for &i32, so x does not need to be dereferenced in x 2.
main
branch to see if this has already been fixed, in this file:quizzes/ch13-02-iterators.toml
URL to the section(s) of the book with this problem: https://rust-book.cs.brown.edu/ch13-02-iterators.html#using-closures-that-capture-their-environment
Description of the problem: The
Context
forQuestion 3
has typo.Suggested fix: Change the above sentence like so.