Skip to content

Commit d6ba2e4

Browse files
authored
Fix dangling close paren
1 parent 06a75e4 commit d6ba2e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,7 +1642,7 @@ These attributes do not work on typedefs, since typedefs are just aliases.
16421642
16431643
Representations like `#[repr(u8)]`, `#[repr(i64)]` are for selecting the
16441644
discriminant size for enums with no data fields on any of the variants, e.g.
1645-
`enum Color {Red, Blue, Green}`), effectively setting the size of the enum to
1645+
`enum Color {Red, Blue, Green}`, effectively setting the size of the enum to
16461646
the size of the provided type. Such an enum can be cast to a value of the same
16471647
type as well. In short, `#[repr(u8)]` makes the enum behave like an integer
16481648
with a constrained set of allowed values.

0 commit comments

Comments
 (0)