From 5a0d6b76205d6e021348a930a5a17820e5dc4458 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 2 Aug 2022 10:09:50 +0800 Subject: [PATCH] fix docs (#427) --- git-index/src/access.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] }