File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
branches/try/src/librustc Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5
- refs/heads/try: 8a6980c55349cd3ce0ab9a873caa24eb41dab1bd
5
+ refs/heads/try: 737005a110977094acb251fa356fa14764387933
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ The value of static and const variables must be known at compile time. You
173
173
can't cast a pointer as an integer because we can't know what value the
174
174
address will take.
175
175
176
- However, pointers to other constants' address are allowed in constants,
176
+ However, pointers to other constants' addresses are allowed in constants,
177
177
example:
178
178
179
179
```
@@ -182,7 +182,7 @@ const Y: *const u32 = &X;
182
182
```
183
183
184
184
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:
186
186
187
187
```
188
188
const X: u32 = 50;
You can’t perform that action at this time.
0 commit comments