about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/doc/book/closures.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/book/closures.md b/src/doc/book/closures.md
index a8135ad3849..d81619b647f 100644
--- a/src/doc/book/closures.md
+++ b/src/doc/book/closures.md
@@ -492,12 +492,12 @@ fn factory() -> Box<Fn(i32) -> i32> {
 
     Box::new(move |x| x + num)
 }
-# fn main() {
+fn main() {
 let f = factory();
 
 let answer = f(1);
 assert_eq!(6, answer);
-# }
+}
 ```
 
 By making the inner closure a `move Fn`, we create a new stack frame for our