Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 20, 2015
1 parent 8a6980c commit 737005a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/diagnostics.rs
Expand Up @@ -173,7 +173,7 @@ The value of static and const variables must be known at compile time. You
can't cast a pointer as an integer because we can't know what value the
address will take.
However, pointers to other constants' address are allowed in constants,
However, pointers to other constants' addresses are allowed in constants,
example:
```
Expand All @@ -182,7 +182,7 @@ const Y: *const u32 = &X;
```
Therefore, casting one of these non-constant pointers to an integer results
in a non-constant integer whichs lead to this error. Example:
in a non-constant integer which lead to this error. Example:
```
const X: u32 = 50;
Expand Down

0 comments on commit 737005a

Please sign in to comment.