about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJonathan Turner <jonathandturner@users.noreply.github.com>2016-08-17 06:25:26 -0700
committerGitHub <noreply@github.com>2016-08-17 06:25:26 -0700
commiteb91d33a14ca1db3ee92eea1066aed62cd2bac57 (patch)
treef4b8e1fe74c72abf914e1ad874bbdb1bf2eef0db /src
parenteac17f1ee85076576fcbadf602775d2169e2aaff (diff)
parent9e3986188d9c8f2702476a330892f7874055c30f (diff)
downloadrust-eb91d33a14ca1db3ee92eea1066aed62cd2bac57.tar.gz
rust-eb91d33a14ca1db3ee92eea1066aed62cd2bac57.zip
Rollup merge of #35681 - Rufflewind:patch-1, r=apasel422
Fix spacing in code of closures.md

The spacing seems inconsistent with existing style conventions.
Diffstat (limited to 'src')
-rw-r--r--src/doc/book/closures.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/book/closures.md b/src/doc/book/closures.md
index 1470eac9829..d332cac7d8d 100644
--- a/src/doc/book/closures.md
+++ b/src/doc/book/closures.md
@@ -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) }
 ```