Skip to content

Commit 02d96ac

Browse files
committed
guide: function -> closure in explanation of closures
1 parent cbacdbc commit 02d96ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4223,7 +4223,7 @@ don't need to declare one. This is different from named functions, which
42234223
default to returning unit (`()`).
42244224

42254225
There's one big difference between a closure and named functions, and it's in
4226-
the name: a function "closes over its environment." What's that mean? It means
4226+
the name: a closure "closes over its environment." What's that mean? It means
42274227
this:
42284228

42294229
```{rust}

0 commit comments

Comments
 (0)