]> git.lizzy.rs Git - rust.git/commitdiff
Fix spacing in code of closures.md
authorPhil Ruffwind <rf@rufflewind.com>
Mon, 11 Jul 2016 19:25:12 +0000 (15:25 -0400)
committerPhil Ruffwind <rf@rufflewind.com>
Mon, 15 Aug 2016 13:39:13 +0000 (09:39 -0400)
The spacing seems inconsistent with existing style conventions.

src/doc/book/closures.md

index 1470eac98295e8860c02464d7e445e68e2593aeb..d332cac7d8d16c76bed6b7bad805c1c389239feb 100644 (file)
@@ -262,7 +262,7 @@ the result:
 
 ```rust
 fn call_with_one<F>(some_closure: F) -> i32
-    where F : Fn(i32) -> i32 {
+    where F: Fn(i32) -> i32 {
 
     some_closure(1)
 }
@@ -279,7 +279,7 @@ Let’s examine the signature of `call_with_one` in more depth:
 
 ```rust
 fn call_with_one<F>(some_closure: F) -> i32
-#    where F : Fn(i32) -> i32 {
+#    where F: Fn(i32) -> i32 {
 #    some_closure(1) }
 ```
 
@@ -288,7 +288,7 @@ isn’t interesting. The next part is:
 
 ```rust
 # fn call_with_one<F>(some_closure: F) -> i32
-    where F : Fn(i32) -> i32 {
+    where F: Fn(i32) -> i32 {
 #   some_closure(1) }
 ```