Skip to content

Commit

Permalink
fix incorrect #[note] syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
CleanCut authored and compiler-errors committed Aug 18, 2022
1 parent 2512667 commit 9334d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagnostics/diagnostic-structs.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ tcx.sess.emit_err(FieldAlreadyDeclared {
- See [translation documentation](./translation.md).
- `code = "..."` (_Optional_)
- Specifies the error code.
- `#[note]` or `#[note = "..."]` (_Optional_)
- `#[note]` or `#[note(...)]` (_Optional_)
- _Applied to struct or `Span`/`()` fields._
- Adds a note subdiagnostic.
- Value is the Fluent attribute (relative to the Fluent message specified by
Expand Down

0 comments on commit 9334d59

Please sign in to comment.