Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60c136c

Browse files
committed
fix docs (#450)
1 parent 21c0ab9 commit 60c136c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

git-diff/src/tree/changes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl<'a> tree::Changes<'a> {
2828
/// * The `state` maybe owned or mutably borrowed to allow reuses allocated data structures through multiple runs.
2929
/// * `locate` is a function `f(object_id, &mut buffer) -> Option<TreeIter>` to return a `TreeIter` for the given object id backing
3030
/// its data in the given buffer. Returning `None` is unexpected as these trees are obtained during iteration, and in a typical
31-
/// database errors are not expected either which is why the error case is omitted. To allow proper error reporting, [`Error::NotFound`]
31+
/// database errors are not expected either which is why the error case is omitted. To allow proper error reporting, [`Error::FindExisting`]
3232
/// should be converted into a more telling error.
3333
/// * `delegate` will receive the computed changes, see the [`Visit`][`tree::Visit`] trait for more information on what to expect.
3434
///

git-traverse/src/tree/breadthfirst.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::collections::VecDeque;
22

33
use git_hash::ObjectId;
44

5-
/// The error is part of the item returned by the [`traverse()`] function.
5+
/// The error is part of the item returned by the [`traverse()`][impl_::traverse()] function.
66
#[derive(Debug, thiserror::Error)]
77
#[allow(missing_docs)]
88
pub enum Error {

0 commit comments

Comments
 (0)