Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #12212 - Elliot-Roberts:hint_typo, r=lnicola
Fix a typo in the `inlayHints.renderColons` option description
The description said the same thing twice: "trailing colons for parameter hints, and trailing colons for parameter hints".
I'm assuming one of those is supposed to be about the leading colon for type hints.
Also, I wasn't sure how to regenerate the generated file(s?) so I just manually updated them. Hopefully that isn't a problem. If how to do that is in the documentation somewhere I'd love to know.
| -rw-r--r-- | crates/rust-analyzer/src/config.rs | 2 | ||||
| -rw-r--r-- | docs/user/generated_config.adoc | 2 | ||||
| -rw-r--r-- | editors/code/package.json | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index 119b94f060..5da4417b77 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -264,7 +264,7 @@ config_data! { inlayHints_parameterHints_enable: bool = "true", /// Whether to show inlay type hints for compiler inserted reborrows. inlayHints_reborrowHints_enable: bool = "false", - /// Whether to render trailing colons for parameter hints, and trailing colons for parameter hints. + /// Whether to render leading colons for type hints, and trailing colons for parameter hints. inlayHints_renderColons: bool = "true", /// Whether to show inlay type hints for variables. inlayHints_typeHints_enable: bool = "true", diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index bc513601a8..0fad96dbcf 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc @@ -373,7 +373,7 @@ Whether to show inlay type hints for compiler inserted reborrows. [[rust-analyzer.inlayHints.renderColons]]rust-analyzer.inlayHints.renderColons (default: `true`):: + -- -Whether to render trailing colons for parameter hints, and trailing colons for parameter hints. +Whether to render leading colons for type hints, and trailing colons for parameter hints. -- [[rust-analyzer.inlayHints.typeHints.enable]]rust-analyzer.inlayHints.typeHints.enable (default: `true`):: + diff --git a/editors/code/package.json b/editors/code/package.json index 515ecd0295..241cafd369 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -814,7 +814,7 @@ "type": "boolean" }, "rust-analyzer.inlayHints.renderColons": { - "markdownDescription": "Whether to render trailing colons for parameter hints, and trailing colons for parameter hints.", + "markdownDescription": "Whether to render leading colons for type hints, and trailing colons for parameter hints.", "default": true, "type": "boolean" }, |