Rollup merge of #35681 - Rufflewind:patch-1, r=apasel422
Fix spacing in code of closures.md The spacing seems inconsistent with existing style conventions.
This commit is contained in:
commit
eb91d33a14
1 changed files with 3 additions and 3 deletions
|
|
@ -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) }
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue