diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-04-20 12:01:56 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-04-20 12:01:56 +0200 |
| commit | 737005a110977094acb251fa356fa14764387933 (patch) | |
| tree | 2786e56ee10967fa7b25523b01342cd6cdb01ca6 | |
| parent | 8a6980c55349cd3ce0ab9a873caa24eb41dab1bd (diff) | |
| download | rust-737005a110977094acb251fa356fa14764387933.tar.gz rust-737005a110977094acb251fa356fa14764387933.zip | |
Fix typos
| -rw-r--r-- | src/librustc/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 15e62d2adc2..85dab766add 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -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: ``` @@ -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; |
