Skip to content

Commit eba8055

Browse files
committed
Rollup merge of rust-lang#32973 - kindlychung:patch-1, r=steveklabnik
remove "#" symbols to make the code compile
2 parents 00d4ac3 + f916491 commit eba8055

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/book/closures.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -492,12 +492,12 @@ fn factory() -> Box<Fn(i32) -> i32> {
492492

493493
Box::new(move |x| x + num)
494494
}
495-
# fn main() {
495+
fn main() {
496496
let f = factory();
497497

498498
let answer = f(1);
499499
assert_eq!(6, answer);
500-
# }
500+
}
501501
```
502502

503503
By making the inner closure a `move Fn`, we create a new stack frame for our

0 commit comments

Comments
 (0)