diff --git a/src/attributes/type_system.md b/src/attributes/type_system.md index 953353c448..032d8ba9d1 100644 --- a/src/attributes/type_system.md +++ b/src/attributes/type_system.md @@ -176,7 +176,7 @@ For example, the following enum can be cast because it doesn't contain any non-e #[non_exhaustive] pub enum Example { First, - Second + Second, } ``` @@ -187,7 +187,7 @@ However, if the enum contains even a single non-exhaustive variant, casting will pub enum EnumWithNonExhaustiveVariants { First, #[non_exhaustive] - Second + Second, } ```