Skip to content

Commit 03949f5

Browse files
authored
issue #40793
Correcting the two mistakes in the README.md
1 parent 366386c commit 03949f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_borrowck/borrowck/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ ALIASABLE(*LV, MQ) // M-Deref-Unique
347347
ALIASABLE(LV, MQ)
348348
```
349349

350-
### Checking mutability of immutable pointer types
350+
### Checking aliasability of immutable pointer types
351351

352352
Immutable pointer types like `&T` are aliasable, and hence can only be
353353
borrowed immutably:
@@ -357,7 +357,7 @@ ALIASABLE(*LV, imm) // M-Deref-Borrowed-Imm
357357
TYPE(LV) = &Ty
358358
```
359359

360-
### Checking mutability of mutable pointer types
360+
### Checking aliasability of mutable pointer types
361361

362362
`&mut T` can be frozen, so it is acceptable to borrow it as either imm or mut:
363363

0 commit comments

Comments
 (0)