Skip to content

Commit 764c23b

Browse files
authored
Merge pull request rust-lang#201 from yellow-apple/patch-1
enum representation in C is not undefined but implementation-defined
2 parents e147927 + abad3db commit 764c23b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/attributes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ On `enum`s:
136136
representation. Takes one argument, which is the primitive
137137
type this enum should be represented for, or `C`, which specifies that it
138138
should be the default `enum` size of the C ABI for that platform. Note that
139-
enum representation in C is undefined, and this may be incorrect when the C
140-
code is compiled with certain flags.
139+
enum representation in C is implementation-defined, and may not be compatible
140+
when the C code is compiled with certain flags.
141141

142142
On `struct`s:
143143

@@ -416,4 +416,4 @@ You can implement `derive` for your own type through [procedural macros].
416416

417417
[Doc comments]: comments.html#doc-comments
418418
[The Rustdoc Book]: ../rustdoc/the-doc-attribute.html
419-
[procedural macros]: procedural-macros.html
419+
[procedural macros]: procedural-macros.html

0 commit comments

Comments
 (0)