Skip to content

Commit cd7f2fe

Browse files
authored
Merge pull request #976 from ehuss/typo-discrimnant
Fix misspelled word discrimnant
2 parents 3b6fe80 + 89db1d0 commit cd7f2fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type-layout.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ Rust's [field-less enums] with this representation. An `enum` in C is
290290
mostly a `typedef` plus some named constants; in other words, an object of an
291291
`enum` type can hold any integer value. For example, this is often used for
292292
bitflags in `C`. In contrast, Rust’s [field-less enums] can only legally hold
293-
the discrimnant values, everything else is [undefined behavior]. Therefore,
293+
the discriminant values, everything else is [undefined behavior]. Therefore,
294294
using a field-less enum in FFI to model a C `enum` is often wrong.
295295

296296
</div>

0 commit comments

Comments
 (0)