Skip to content

Commit e474314

Browse files
CleanCutcompiler-errors
authored andcommitted
more syntax fixes
1 parent 9abbb0a commit e474314

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,14 @@ tcx.sess.emit_err(FieldAlreadyDeclared {
168168
`slug`) for the note's message
169169
- Defaults to `note`.
170170
- If applied to a `Span` field, creates a spanned note.
171-
- `#[help]` or `#[help = "..."]` (_Optional_)
171+
- `#[help]` or `#[help(...)]` (_Optional_)
172172
- _Applied to struct or `Span`/`()` fields._
173173
- Adds a help subdiagnostic.
174174
- Value is the Fluent attribute (relative to the Fluent message specified by
175175
`slug`) for the help's message.
176176
- Defaults to `help`.
177177
- If applied to a `Span` field, creates a spanned help.
178-
- `#[label]` or `#[label = "..."]` (_Optional_)
178+
- `#[label]` or `#[label(...)]` (_Optional_)
179179
- _Applied to `Span` fields._
180180
- Adds a label subdiagnostic.
181181
- Value is the Fluent attribute (relative to the Fluent message specified by

0 commit comments

Comments
 (0)