mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
minor: Freshen up goto feature docs
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
//
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user