Skip to content

Commit d3e48d1

Browse files
committed
Move syntax to match the order of the template
1 parent f10e8eb commit d3e48d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/attributes/type_system.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ The *`non_exhaustive` attribute* indicates that a type or variant may have more
3838
> }
3939
> ```
4040
41-
r[attributes.type-system.non_exhaustive.allowed-positions]
42-
It can be applied to [`struct`s][struct], [`enum`s][enum], and `enum` variants.
43-
4441
r[attributes.type-system.non_exhaustive.syntax]
4542
The `non_exhaustive` attribute uses the [MetaWord] syntax and thus does not take any inputs.
4643
44+
r[attributes.type-system.non_exhaustive.allowed-positions]
45+
It can be applied to [`struct`s][struct], [`enum`s][enum], and `enum` variants.
46+
4747
r[attributes.type-system.non_exhaustive.same-crate]
4848
Within the defining crate, `non_exhaustive` has no effect.
4949

0 commit comments

Comments
 (0)