]> git.lizzy.rs Git - rust.git/commitdiff
issue #40793
authorGAJaloyan <georges-axel.jaloyan@ens.fr>
Fri, 24 Mar 2017 16:47:23 +0000 (17:47 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Mar 2017 16:47:23 +0000 (17:47 +0100)
Correcting the two mistakes in the README.md

src/librustc_borrowck/borrowck/README.md

index 5cfbd59d3336881ecc0e6d450ae8198e338c3af4..29b007a7499c3115fd568313da5940e7d098d7b8 100644 (file)
@@ -347,7 +347,7 @@ ALIASABLE(*LV, MQ)                 // M-Deref-Unique
   ALIASABLE(LV, MQ)
 ```
 
-### Checking mutability of immutable pointer types
+### Checking aliasability of immutable pointer types
 
 Immutable pointer types like `&T` are aliasable, and hence can only be
 borrowed immutably:
@@ -357,7 +357,7 @@ ALIASABLE(*LV, imm)                // M-Deref-Borrowed-Imm
   TYPE(LV) = &Ty
 ```
 
-### Checking mutability of mutable pointer types
+### Checking aliasability of mutable pointer types
 
 `&mut T` can be frozen, so it is acceptable to borrow it as either imm or mut: