Skip to content

Commit

Permalink
fix docs (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Aug 2, 2022
1 parent a049bd3 commit 5a0d6b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-index/src/access.rs
Expand Up @@ -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)
Expand All @@ -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]
}
Expand Down

0 comments on commit 5a0d6b7

Please sign in to comment.