Skip to content

Commit c8ee89f

Browse files
committed
Minor update of deprecated
More closely align with the template, and some minor word tweaks.
1 parent 16f8914 commit c8ee89f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/attributes/diagnostics.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ fn foo() {
299299
> [!NOTE]
300300
> `rustc` currently recognizes the tool lints for "[clippy]" and "[rustdoc]".
301301
302+
<!-- template:attributes -->
302303
r[attributes.diagnostics.deprecated]
303304
## The `deprecated` attribute
304305

@@ -314,7 +315,7 @@ The *`deprecated` [attribute][attributes]* marks an item as deprecated.
314315
> ```
315316
316317
r[attributes.diagnostics.deprecated.syntax]
317-
The `deprecated` attribute has several forms:
318+
The syntax for the `deprecated` attribute is:
318319
319320
```grammar,attributes
320321
@root DeprecatedAttribute ->
@@ -340,10 +341,10 @@ The `deprecated` attribute may be applied to:
340341
It may not be applied to [trait implementation items][trait-impl].
341342

342343
> [!NOTE]
343-
> `rustc` currently ignores `deprecated` in other positions, but this may be rejected in the future.
344+
> `rustc` ignores `deprecated` in other positions, but this may be rejected in the future.
344345
345346
r[attributes.diagnostics.deprecated.duplicates]
346-
The `deprecated` attribute may only be specified once on an item.
347+
The `deprecated` attribute may only be used once on an item.
347348

348349
r[attributes.diagnostics.deprecated.behavior]
349350
A warning is emitted when a deprecated item is used.

0 commit comments

Comments
 (0)