diff --git a/src/doc/trpl/closures.md b/src/doc/trpl/closures.md index 52d07ae465f..e63331e5206 100644 --- a/src/doc/trpl/closures.md +++ b/src/doc/trpl/closures.md @@ -54,7 +54,7 @@ The second is that the syntax is similar, but a bit different. I've added spaces here to make them look a little closer: ```rust -fn plus_one_v1 ( x: i32 ) -> i32 { x + 1 } +fn plus_one_v1 (x: i32 ) -> i32 { x + 1 } let plus_one_v2 = |x: i32 | -> i32 { x + 1 }; let plus_one_v3 = |x: i32 | x + 1 ; ```