diff options
| author | Michael Howell <michael@notriddle.com> | 2017-12-06 10:54:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-06 10:54:03 -0700 |
| commit | d6ba2e4d1cd5d857ff6318b715b9967d65cee181 (patch) | |
| tree | a5206c1accb05f9dd2f5e4353f742f2cd94da0f2 | |
| parent | 06a75e4d1f472461ecdcb6baf24226f856379a41 (diff) | |
| download | rust-d6ba2e4d1cd5d857ff6318b715b9967d65cee181.tar.gz rust-d6ba2e4d1cd5d857ff6318b715b9967d65cee181.zip | |
Fix dangling close paren
| -rw-r--r-- | src/librustc/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index eca64bfb5ec..02a4c8cfb87 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -1642,7 +1642,7 @@ These attributes do not work on typedefs, since typedefs are just aliases. Representations like `#[repr(u8)]`, `#[repr(i64)]` are for selecting the discriminant size for enums with no data fields on any of the variants, e.g. -`enum Color {Red, Blue, Green}`), effectively setting the size of the enum to +`enum Color {Red, Blue, Green}`, effectively setting the size of the enum to the size of the provided type. Such an enum can be cast to a value of the same type as well. In short, `#[repr(u8)]` makes the enum behave like an integer with a constrained set of allowed values. |
