Skip to content

Commit 16399a1

Browse files
authored
Clarify that repr(any integer type) is legal
The previous title suggested that `repr(isize)`, for example, was not valid. I'm not sure if this is great wording, or whether we should add some examples, but I think we can improve the heading.
1 parent 81134a4 commit 16399a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/other-reprs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ compiled as normal.)
5353

5454

5555

56-
# repr(u8), repr(u16), repr(u32), repr(u64)
56+
# repr(u*), repr(i*)
5757

5858
These specify the size to make a C-like enum. If the discriminant overflows the
5959
integer it has to fit in, it will produce a compile-time error. You can manually

0 commit comments

Comments
 (0)