Skip to content

Commit 737005a

Browse files
Fix typos
1 parent 8a6980c commit 737005a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ The value of static and const variables must be known at compile time. You
173173
can't cast a pointer as an integer because we can't know what value the
174174
address will take.
175175
176-
However, pointers to other constants' address are allowed in constants,
176+
However, pointers to other constants' addresses are allowed in constants,
177177
example:
178178
179179
```
@@ -182,7 +182,7 @@ const Y: *const u32 = &X;
182182
```
183183
184184
Therefore, casting one of these non-constant pointers to an integer results
185-
in a non-constant integer whichs lead to this error. Example:
185+
in a non-constant integer which lead to this error. Example:
186186
187187
```
188188
const X: u32 = 50;

0 commit comments

Comments
 (0)