aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-18 16:42:49 +0000
committerAleksey Kladov <[email protected]>2019-12-18 16:42:49 +0000
commitd33fc26e05c573f536e02afbffc354fa4f4a35f3 (patch)
treeb4d08c438076e3dbbc2b4d8ea64fb3f821a3377d /crates/ra_hir_def/src
parent04715cbe1caf92e55d393a352a12454ba958845e (diff)
Touch up docs
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r--crates/ra_hir_def/src/path.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/path.rs b/crates/ra_hir_def/src/path.rs
index 1e2da6b48..3fb0955d1 100644
--- a/crates/ra_hir_def/src/path.rs
+++ b/crates/ra_hir_def/src/path.rs
@@ -82,7 +82,8 @@ impl ModPath {
82 82
83#[derive(Debug, Clone, PartialEq, Eq, Hash)] 83#[derive(Debug, Clone, PartialEq, Eq, Hash)]
84pub struct Path { 84pub struct Path {
85 /// Type based path like `<T>::foo` 85 /// Type based path like `<T>::foo`.
86 /// Note that paths like `<Type as Trait>::foo` are desugard to `Trait::<Self=Type>::foo`.
86 type_anchor: Option<Box<TypeRef>>, 87 type_anchor: Option<Box<TypeRef>>,
87 mod_path: ModPath, 88 mod_path: ModPath,
88 /// Invariant: the same len as self.path.segments 89 /// Invariant: the same len as self.path.segments