Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #22727 from ByteBaker/master
Clarify constructor reference docs
Chayim Refael Friedman 7 days ago
parent 28eedd7 · parent 1936ad1 · commit 7ae18ed
-rw-r--r--crates/ide/src/references.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/references.rs b/crates/ide/src/references.rs
index 3eb7867a3a..34286c4790 100644
--- a/crates/ide/src/references.rs
+++ b/crates/ide/src/references.rs
@@ -79,8 +79,8 @@ pub struct Declaration {
//
// Special handling for constructors:
// - When the cursor is on `{`, `(`, or `;` in a struct/enum definition
-// - When the cursor is on the type name in a struct/enum definition
// These cases will show only constructor/initialization usages of the type
+// (for example, `S { .. }`, `S(..)`, or `S`) instead of every type reference.
//
// | Editor | Shortcut |
// |---------|----------|