Fix comment.

This commit is contained in:
ecstatic-morse 2020-06-27 12:57:00 -07:00 committed by GitHub
parent 234019758b
commit ffcfaa1105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ fn foo() {
{
let mut x = 42;
// Derefs are treated like a read of a local even if they are on the RHS of an assignment.
// Derefs are treated like a read of a local even if they are on the LHS of an assignment.
let p = &mut x;
unsafe { rustc_peek(&p); }
*p = 24;