Skip to content

Commit c1dc765

Browse files
authored
Merge pull request #2194 from rust-lang/tc/align-attribute-template
Align attribute template with applied conventions
2 parents 1d55d6d + 0e1358b commit c1dc765

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dev-guide/src/attributes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The `example` attribute uses the [MetaNameValueStr] syntax. The value in the str
5050
5151
----
5252
53-
The `example` attribute has the following forms:
53+
The `example` attribute has these forms:
5454
5555
- [MetaWord]
5656
> [!EXAMPLE]
@@ -106,7 +106,7 @@ The `example` attribute may only be applied to the crate root.
106106
107107
----
108108
109-
The `example` attribute is allowed anywhere attributes are allowed.
109+
The `example` attribute may be used anywhere attributes are allowed.
110110
111111
----
112112
@@ -118,7 +118,7 @@ If there are unused attribute warnings, or if `rustc` is incorrectly accepting s
118118
----
119119
120120
r[PARENT.example.duplicates]
121-
Explain the behavior when the attribute is specified multiple times on an element. See [`AttributeDuplicates`](https://github.com/rust-lang/rust/blob/40d2563ea200f9327a8cb8b99a0fb82f75a7365c/compiler/rustc_feature/src/builtin_attrs.rs#L143) in the compiler. Examples:
121+
Explain the behavior when the attribute is used multiple times on an element. See [`AttributeDuplicates`](https://github.com/rust-lang/rust/blob/40d2563ea200f9327a8cb8b99a0fb82f75a7365c/compiler/rustc_feature/src/builtin_attrs.rs#L143) in the compiler. Examples:
122122
123123
----
124124
@@ -155,7 +155,7 @@ Only the last use of `example` on an item is used to ...
155155
156156
----
157157
158-
If the `example` attribute is used more than once on an item, then the combination of all the specified values is used as ...explain how they are merged.
158+
If the `example` attribute is used more than once on an item, then the combination of all listed values is used as ...explain how they are merged.
159159
160160
----
161161

0 commit comments

Comments
 (0)