Skip to content

Commit 3751429

Browse files
committed
Auto merge of #15885 - RunDevelopment:patch-1, r=lnicola
Fix typo in highlight_related.rs While reading the user manual, I noticed a random tick, so I went ahead and fixed it. The `await` keyword should be properly rendered as inline code. ![image](https://github.com/rust-lang/rust-analyzer/assets/20878432/f134a4c9-e539-4635-97ac-506790893869)
2 parents 255eed4 + 6705860 commit 3751429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: crates/ide/src/highlight_related.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub struct HighlightRelatedConfig {
4343
//
4444
// . if on an identifier, highlights all references to that identifier in the current file
4545
// .. additionally, if the identifier is a trait in a where clause, type parameter trait bound or use item, highlights all references to that trait's assoc items in the corresponding scope
46-
// . if on an `async` or `await token, highlights all yield points for that async context
46+
// . if on an `async` or `await` token, highlights all yield points for that async context
4747
// . if on a `return` or `fn` keyword, `?` character or `->` return type arrow, highlights all exit points for that context
4848
// . if on a `break`, `loop`, `while` or `for` token, highlights all break points for that loop or block context
4949
// . if on a `move` or `|` token that belongs to a closure, highlights all captures of the closure.

0 commit comments

Comments
 (0)