We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 017b42a commit e5028f7Copy full SHA for e5028f7
src/types/closure.md
@@ -65,7 +65,7 @@ types, by copy, regardless of whether a borrow would work. The `move` keyword is
65
usually used to allow the closure to outlive the captured values, such as if the
66
closure is being returned or used to spawn a new thread.
67
68
-r[type.closure.capture.composite]
+r[type.closure.capture.composite]
69
Composite types such as structs, tuples, and enums are always captured entirely,
70
not by individual fields. It may be necessary to borrow into a local variable in
71
order to capture a single field:
0 commit comments