From 16399a1e23811aeec5cb0c1cd31a2a482d278b54 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Fri, 21 Jul 2017 23:44:57 +0100 Subject: [PATCH] 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. --- src/other-reprs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/other-reprs.md b/src/other-reprs.md index a405d15..ebd33ca 100644 --- a/src/other-reprs.md +++ b/src/other-reprs.md @@ -53,7 +53,7 @@ compiled as normal.) -# repr(u8), repr(u16), repr(u32), repr(u64) +# repr(u*), repr(i*) These specify the size to make a C-like enum. If the discriminant overflows the integer it has to fit in, it will produce a compile-time error. You can manually