From d6ba2e4d1cd5d857ff6318b715b9967d65cee181 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Wed, 6 Dec 2017 10:54:03 -0700 Subject: [PATCH] Fix dangling close paren --- src/librustc/diagnostics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index eca64bfb5ec1..02a4c8cfb870 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.