We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b6fe80 + 89db1d0 commit cd7f2feCopy full SHA for cd7f2fe
src/type-layout.md
@@ -290,7 +290,7 @@ Rust's [field-less enums] with this representation. An `enum` in C is
290
mostly a `typedef` plus some named constants; in other words, an object of an
291
`enum` type can hold any integer value. For example, this is often used for
292
bitflags in `C`. In contrast, Rust’s [field-less enums] can only legally hold
293
-the discrimnant values, everything else is [undefined behavior]. Therefore,
+the discriminant values, everything else is [undefined behavior]. Therefore,
294
using a field-less enum in FFI to model a C `enum` is often wrong.
295
296
</div>
0 commit comments