Skip to content

Commit 3bc76d2

Browse files
author
Cameron Zwarich
committed
Add a comment missing from 5aff0e7
For some reason, I had this comment in my local tree but not in the branch I sent with the PR.
1 parent cc45132 commit 3bc76d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/borrowck/check_loans.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,8 @@ impl<'a> CheckLoanCtxt<'a> {
638638
loan_path = match *loan_path {
639639
// Peel back one layer if, for `loan_path` to be
640640
// mutable, `lp_base` must be mutable. This occurs
641-
// with inherited mutability and with `&mut`
642-
// pointers.
641+
// with inherited mutability, owned pointers and
642+
// `&mut` pointers.
643643
LpExtend(ref lp_base, mc::McInherited, _) |
644644
LpExtend(ref lp_base, _, LpDeref(mc::OwnedPtr)) |
645645
LpExtend(ref lp_base, _, LpDeref(mc::GcPtr)) |

0 commit comments

Comments
 (0)