Update src/closure.md
Co-authored-by: Joshua Nelson <github@jyn.dev>
This commit is contained in:
parent
ebbb329734
commit
e0cfc8c17a
|
|
@ -199,7 +199,7 @@ Mutability and Type and is defined in
|
||||||
comments, "`cmt` is a complete categorization of a value indicating where it
|
comments, "`cmt` is a complete categorization of a value indicating where it
|
||||||
originated and how it is located, as well as the mutability of the memory in
|
originated and how it is located, as well as the mutability of the memory in
|
||||||
which the value is stored". Based on the callback (consume, borrow etc.), we
|
which the value is stored". Based on the callback (consume, borrow etc.), we
|
||||||
will call the relevant *adjust_upvar_borrow_kind_for_\<something\>* and pass the
|
will call the relevant `adjust_upvar_borrow_kind_for_<something>` and pass the
|
||||||
`cmt` along. Once the borrow type is adjusted, we store it in the table, which
|
`cmt` along. Once the borrow type is adjusted, we store it in the table, which
|
||||||
basically says what borrows were made for each closure.
|
basically says what borrows were made for each closure.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue