From 59378d35c67a7bd9bece45bb70f50bf346c92423 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 9 Mar 2022 15:08:13 +0100 Subject: [PATCH] Update compiler/mono/src/borrow.rs Co-authored-by: hafiz <20735482+ayazhafiz@users.noreply.github.com> --- compiler/mono/src/borrow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/mono/src/borrow.rs b/compiler/mono/src/borrow.rs index 114d3d039c..0cbe6a504c 100644 --- a/compiler/mono/src/borrow.rs +++ b/compiler/mono/src/borrow.rs @@ -734,7 +734,7 @@ impl<'a> BorrowInfState<'a> { } 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); // if the extracted value is owned, the structure must be too