Skip to content

Commit 9e39861

Browse files
committed
Fix spacing in code of closures.md
The spacing seems inconsistent with existing style conventions.
1 parent f0bab98 commit 9e39861

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/book/closures.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ the result:
262262

263263
```rust
264264
fn call_with_one<F>(some_closure: F) -> i32
265-
where F : Fn(i32) -> i32 {
265+
where F: Fn(i32) -> i32 {
266266

267267
some_closure(1)
268268
}
@@ -279,7 +279,7 @@ Let’s examine the signature of `call_with_one` in more depth:
279279

280280
```rust
281281
fn call_with_one<F>(some_closure: F) -> i32
282-
# where F : Fn(i32) -> i32 {
282+
# where F: Fn(i32) -> i32 {
283283
# some_closure(1) }
284284
```
285285

@@ -288,7 +288,7 @@ isn’t interesting. The next part is:
288288

289289
```rust
290290
# fn call_with_one<F>(some_closure: F) -> i32
291-
where F : Fn(i32) -> i32 {
291+
where F: Fn(i32) -> i32 {
292292
# some_closure(1) }
293293
```
294294

0 commit comments

Comments
 (0)