Skip to content

Commit

Permalink
Rollup merge of rust-lang#35681 - Rufflewind:patch-1, r=apasel422
Browse files Browse the repository at this point in the history
Fix spacing in code of closures.md

The spacing seems inconsistent with existing style conventions.
  • Loading branch information
Jonathan Turner committed Aug 15, 2016
2 parents 73d61eb + 9e39861 commit c0c9967
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/book/closures.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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) }
```

Expand All @@ -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) }
```

Expand Down

0 comments on commit c0c9967

Please sign in to comment.