Update compiler/mono/src/borrow.rs

Co-authored-by: hafiz <20735482+ayazhafiz@users.noreply.github.com>
This commit is contained in:
Folkert de Vries 2022-03-09 15:08:13 +01:00 committed by GitHub
parent 574f14522d
commit 59378d35c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -734,7 +734,7 @@ impl<'a> BorrowInfState<'a> {
} }
ExprUnbox { symbol: x } => { ExprUnbox { symbol: x } => {
// if the structure (record/tag/array) is owned, the extracted value is // if the boxed value is owned, the box is
self.if_is_owned_then_own(*x, z); self.if_is_owned_then_own(*x, z);
// if the extracted value is owned, the structure must be too // if the extracted value is owned, the structure must be too