We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7b0f62 + 634e6f6 commit 87b589cCopy full SHA for 87b589c
src/fn/closures/capture.md
@@ -16,7 +16,7 @@ required.
16
fn main() {
17
use std::mem;
18
19
- let color = "green";
+ let color = String::from("green");
20
21
// A closure to print `color` which immediately borrows (`&`) `color` and
22
// stores the borrow and closure in the `print` variable. It will remain
0 commit comments