Update src/closure.md

Co-authored-by: Joshua Nelson <github@jyn.dev>
This commit is contained in:
Eric Holk 2021-10-07 15:13:58 -07:00 committed by Joshua Nelson
parent ebbb329734
commit e0cfc8c17a
1 changed files with 1 additions and 1 deletions

View File

@ -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.