Skip to content

Commit be770a7

Browse files
committed
Auto merge of rust-lang#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.
2 parents b350a1b + 2298a76 commit be770a7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ config_data! {
264264
inlayHints_parameterHints_enable: bool = "true",
265265
/// Whether to show inlay type hints for compiler inserted reborrows.
266266
inlayHints_reborrowHints_enable: bool = "false",
267-
/// Whether to render trailing colons for parameter hints, and trailing colons for parameter hints.
267+
/// Whether to render leading colons for type hints, and trailing colons for parameter hints.
268268
inlayHints_renderColons: bool = "true",
269269
/// Whether to show inlay type hints for variables.
270270
inlayHints_typeHints_enable: bool = "true",

docs/user/generated_config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ Whether to show inlay type hints for compiler inserted reborrows.
373373
[[rust-analyzer.inlayHints.renderColons]]rust-analyzer.inlayHints.renderColons (default: `true`)::
374374
+
375375
--
376-
Whether to render trailing colons for parameter hints, and trailing colons for parameter hints.
376+
Whether to render leading colons for type hints, and trailing colons for parameter hints.
377377
--
378378
[[rust-analyzer.inlayHints.typeHints.enable]]rust-analyzer.inlayHints.typeHints.enable (default: `true`)::
379379
+

editors/code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@
814814
"type": "boolean"
815815
},
816816
"rust-analyzer.inlayHints.renderColons": {
817-
"markdownDescription": "Whether to render trailing colons for parameter hints, and trailing colons for parameter hints.",
817+
"markdownDescription": "Whether to render leading colons for type hints, and trailing colons for parameter hints.",
818818
"default": true,
819819
"type": "boolean"
820820
},

0 commit comments

Comments
 (0)