Skip to content

Commit 2451c2d

Browse files
obi1kenobiehuss
authored andcommitted
Match up enums in the example.
1 parent 512f122 commit 2451c2d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/doc/src/reference/semver.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,15 +1141,15 @@ pub struct Foo {
11411141
}
11421142
11431143
pub enum Bar {
1144-
Baz,
1145-
}
1146-
1147-
pub enum Quux {
11481144
X,
11491145
Y(usize),
11501146
Z { a: usize },
11511147
}
11521148
1149+
pub enum Quux {
1150+
Var,
1151+
}
1152+
11531153
///////////////////////////////////////////////////////////
11541154
// After
11551155
#[non_exhaustive]
@@ -1183,7 +1183,7 @@ fn main() {
11831183
match q {
11841184
Quux::Var => 0,
11851185
// Error: non-exhaustive patterns: `_` not covered
1186-
}
1186+
};
11871187
}
11881188
```
11891189

0 commit comments

Comments
 (0)