From 7536ff8e9acfcf5467c86b5504257263375f36fe Mon Sep 17 00:00:00 2001 From: Nathan Stocks Date: Thu, 18 Aug 2022 16:31:39 -0600 Subject: [PATCH] more syntax fixes --- src/diagnostics/diagnostic-structs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/diagnostics/diagnostic-structs.md b/src/diagnostics/diagnostic-structs.md index 36ddd615..d30dd180 100644 --- a/src/diagnostics/diagnostic-structs.md +++ b/src/diagnostics/diagnostic-structs.md @@ -168,14 +168,14 @@ tcx.sess.emit_err(FieldAlreadyDeclared { `slug`) for the note's message - Defaults to `note`. - If applied to a `Span` field, creates a spanned note. -- `#[help]` or `#[help = "..."]` (_Optional_) +- `#[help]` or `#[help(...)]` (_Optional_) - _Applied to struct or `Span`/`()` fields._ - Adds a help subdiagnostic. - Value is the Fluent attribute (relative to the Fluent message specified by `slug`) for the help's message. - Defaults to `help`. - If applied to a `Span` field, creates a spanned help. -- `#[label]` or `#[label = "..."]` (_Optional_) +- `#[label]` or `#[label(...)]` (_Optional_) - _Applied to `Span` fields._ - Adds a label subdiagnostic. - Value is the Fluent attribute (relative to the Fluent message specified by