summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorNathan Stocks <cleancut@github.com>2022-08-18 16:08:26 -0600
committerMichael Goulet <michael@errs.io>2022-08-18 22:11:03 +0000
commit9abbb0a829c777908f5cabec137ce54b5cf902f7 (patch)
tree594ed875a145b1d47427426d5ef5a881a92dec0f /src/doc/rustc-dev-guide
parent0b10fbcd964505f35c5051d8854949bdea59c196 (diff)
downloadrust-9abbb0a829c777908f5cabec137ce54b5cf902f7.tar.gz
rust-9abbb0a829c777908f5cabec137ce54b5cf902f7.zip
fix incorrect #[note] syntax
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md b/src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md
index c197f234e38..36ddd615b00 100644
--- a/src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md
+++ b/src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md
@@ -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