Skip to content

Commit 66d944b

Browse files
author
Hero Bird
authored
Update 2540-formal-function-parameter-attributes.md
1 parent 051be99 commit 66d944b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/2540-formal-function-parameter-attributes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn foo(#[unused] self, ..) { .. }
100100
fn foo(#[unused] &self, ..) { .. }
101101
fn foo(#[unused] &mut self, ..) { .. }
102102

103-
// Closures & Lamdas
103+
// Closures
104104
|#[unused] x| { .. }
105105
```
106106

@@ -162,7 +162,7 @@ constructions like the following will become legal.
162162
- Function definitions
163163
- Method definitions
164164
- Trait function declarations and defnitions (with or without default impl)
165-
- Lambda & closure definitions
165+
- Closure definitions
166166

167167
### Example: A single attributed parameter for function decl or definition
168168

@@ -196,7 +196,7 @@ fn foo(#[bar(Hello)] baz: bool);
196196
fn bar(#[qux(qiz = World)] baz: bool);
197197
```
198198

199-
### Example: Lambdas & closures
199+
### Example: Closures
200200

201201
```rust
202202
let mut v = [5, 4, 1, 3, 2];

0 commit comments

Comments
 (0)