diff --git a/git-index/src/access.rs b/git-index/src/access.rs index 6024993d2c..c8696d46e5 100644 --- a/git-index/src/access.rs +++ b/git-index/src/access.rs @@ -70,7 +70,7 @@ impl State { .ok() } - /// Like [`entry_index_by_path_and_stage()`][File::entry_index_by_path_and_stage()], + /// Like [`entry_index_by_path_and_stage()`][State::entry_index_by_path_and_stage()], /// but returns the entry instead of the index. pub fn entry_by_path_and_stage(&self, path: &BStr, stage: entry::Stage) -> Option<&Entry> { self.entry_index_by_path_and_stage(path, stage) @@ -79,7 +79,7 @@ impl State { /// Return the entry at `idx` or _panic_ if the index is out of bounds. /// - /// The `idx` is typically returned by [entry_by_path_and_stage()][File::entry_by_path_and_stage()]. + /// The `idx` is typically returned by [entry_by_path_and_stage()][State::entry_by_path_and_stage()]. pub fn entry(&self, idx: usize) -> &Entry { &self.entries[idx] }