From a38c9393d1cd0eb6de8428516c1aea981c7eeaaa Mon Sep 17 00:00:00 2001 From: Antoine Roumilhac <40888992+YoshiLeLama@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:12:32 +0100 Subject: [PATCH] Update semver.md: fixed typo fixed typo : was written 'non_exhastive' instead of 'non_exhaustive' --- src/doc/src/reference/semver.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/src/reference/semver.md b/src/doc/src/reference/semver.md index f09250f1a9b..ed7095ae720 100644 --- a/src/doc/src/reference/semver.md +++ b/src/doc/src/reference/semver.md @@ -319,7 +319,7 @@ fn main() { #### Minor: `repr(C)` add enum variant {#repr-c-enum-variant-new} -It is usually safe to add variants to a `repr(C)` enum, if the enum uses `non_exhastive`. +It is usually safe to add variants to a `repr(C)` enum, if the enum uses `non_exhaustive`. See [enum-variant-new](#enum-variant-new) for more discussion. Note that this may be a breaking change since it changes the size and alignment of the type.