mirror of https://github.com/rust-lang/book
Make the change from #1591 in second edition as well
This commit is contained in:
parent
e1464a7a8c
commit
64935180af
|
@ -3,7 +3,7 @@
|
|||
Rust’s closures are anonymous functions you can save in a variable or pass as
|
||||
arguments to other functions. You can create the closure in one place and then
|
||||
call the closure to evaluate it in a different context. Unlike functions,
|
||||
closures can capture values from the scope in which they’re called. We’ll
|
||||
closures can capture values from the scope in which they’re defined. We’ll
|
||||
demonstrate how these closure features allow for code reuse and behavior
|
||||
customization.
|
||||
|
||||
|
|
Loading…
Reference in New Issue