Skip to content

Commit 3b222a2

Browse files
roxeloehuss
authored andcommitted
fix stray merge conflict
1 parent cfa1467 commit 3b222a2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/types/closure.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ r[type.closure.capture]
6262
r[type.closure.capture.order]
6363
The compiler prefers to capture a value by immutable borrow,
6464
followed by unique immutable borrow (see below), by mutable borrow, and finally
65-
by move. It will pick the first choice of these that allows the closure to
66-
compile. The choice is made only with regards to the contents of the closure
67-
expression; the compiler does not take into account surrounding code, such as
68-
the lifetimes of involved variables or fields.
69-
>>>>>>> 881f305... Update closure types documentation so it includes information about RFC2229
65+
by move. It will pick the first choice of these that is compatible with how the
66+
captured value is used inside the closure body. The compiler does not take
67+
surrounding code into account, such as the lifetimes of involved variables or fields, or
68+
of the closure itself.
7069

7170
## Capture Precision
7271

0 commit comments

Comments
 (0)