Skip to content

Commit 1035f7d

Browse files
roxeloehuss
authored andcommitted
fix stray merge conflict
1 parent b0926a1 commit 1035f7d

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
@@ -57,11 +57,10 @@ f(Closure{ left_top: rect.left_top, right_bottom_x: rect.left_top.x });
5757

5858
The compiler prefers to capture a value by immutable borrow,
5959
followed by unique immutable borrow (see below), by mutable borrow, and finally
60-
by move. It will pick the first choice of these that allows the closure to
61-
compile. The choice is made only with regards to the contents of the closure
62-
expression; the compiler does not take into account surrounding code, such as
63-
the lifetimes of involved variables or fields.
64-
>>>>>>> 881f305... Update closure types documentation so it includes information about RFC2229
60+
by move. It will pick the first choice of these that is compatible with how the
61+
captured value is used inside the closure body. The compiler does not take
62+
surrounding code into account, such as the lifetimes of involved variables or fields, or
63+
of the closure itself.
6564

6665
## Capture Precision
6766

0 commit comments

Comments
 (0)