Skip to content

Commit 3c07672

Browse files
committed
Adjust on_unimplemented intro to use the attribute template
1 parent 6da152d commit 3c07672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributes/diagnostics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ r[attributes.diagnostic.on_unimplemented]
477477
### The `diagnostic::on_unimplemented` attribute
478478
479479
r[attributes.diagnostic.on_unimplemented.intro]
480-
The `#[diagnostic::on_unimplemented]` attribute is a hint to the compiler to supplement the error message that would normally be generated in scenarios where a trait is required but not implemented on a type.
480+
The *`diagnostic::on_unimplemented` [attribute][attributes]* is a hint to the compiler to supplement the error message that would normally be generated in scenarios where a trait is required but not implemented on a type.
481481
482482
> [!EXAMPLE]
483483
> In this example:

0 commit comments

Comments
 (0)