]> git.lizzy.rs Git - rust.git/commitdiff
minor: Freshen up goto feature docs
authorLukas Wirth <lukastw97@gmail.com>
Fri, 27 May 2022 13:47:31 +0000 (15:47 +0200)
committerLukas Wirth <lukastw97@gmail.com>
Fri, 27 May 2022 13:47:31 +0000 (15:47 +0200)
crates/ide/src/goto_declaration.rs
crates/ide/src/goto_definition.rs
crates/ide/src/goto_implementation.rs

index cb2cddc20da0f7239876fa981a0020457db3ac40..926292c9b3ce1baf6b374018624fa5917aaff607 100644 (file)
@@ -10,6 +10,9 @@
 // Feature: Go to Declaration
 //
 // Navigates to the declaration of an identifier.
+//
+// This is currently the same as `Go to Definition` with the exception of outline modules where it
+// will navigate to the `mod name;` item declaration.
 pub(crate) fn goto_declaration(
     db: &RootDatabase,
     position: FilePosition,
index 30f48819e6b8f7ee14b065d68d24a8acd665178e..df73879aed74a2dc2c4e5aa0c8cb62981a998aa5 100644 (file)
@@ -15,6 +15,8 @@
 //
 // Navigates to the definition of an identifier.
 //
+// For outline modules, this will navigate to the source file of the module.
+//
 // |===
 // | Editor  | Shortcut
 //
index a7d6bc24019900abdbf77be3b7d05fa5afe0c783..1d2909fa280c3307c2d1d6c74e6aaa9bca966261 100644 (file)
@@ -11,7 +11,7 @@
 
 // Feature: Go to Implementation
 //
-// Navigates to the impl block of structs, enums or traits. Also implemented as a code lens.
+// Navigates to the impl blocks of types.
 //
 // |===
 // | Editor  | Shortcut