Skip to content

Commit 499cc7a

Browse files
CleanCutcompiler-errors
authored andcommitted
fix incorrect #[note] syntax
1 parent 7c8bf03 commit 499cc7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagnostics/diagnostic-structs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ tcx.sess.emit_err(FieldAlreadyDeclared {
161161
- See [translation documentation](./translation.md).
162162
- `code = "..."` (_Optional_)
163163
- Specifies the error code.
164-
- `#[note]` or `#[note = "..."]` (_Optional_)
164+
- `#[note]` or `#[note(...)]` (_Optional_)
165165
- _Applied to struct or `Span`/`()` fields._
166166
- Adds a note subdiagnostic.
167167
- Value is the Fluent attribute (relative to the Fluent message specified by

0 commit comments

Comments
 (0)