Skip to content

Commit 1886fda

Browse files
authored
Remove incorrect "lambda" terminology
We only use "closures" to describe this construct.
1 parent 99eafee commit 1886fda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fn/closures.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Closures
22

3-
Closures in Rust, also called lambda expressions or lambdas, are functions that can capture
4-
the enclosing environment. For example, a closure that captures the x
5-
variable:
3+
Closures are functions that can capture the enclosing environment. For
4+
example, a closure that captures the x variable:
5+
66
```Rust
77
|val| val + x
88
```

0 commit comments

Comments
 (0)