History

fix docs

Sebastian Thiel committed 4 years ago

Commit 34e899a1 parent f256f8f2 files · +2 −2Browse files

Showing the changes to git-diff (1 of 2 files). Show all

Unified · Split

git-diff/src/tree/changes.rs+1−1
@@ -28,7 +28,7 @@ impl<'a> tree::Changes<'a> { · 27 unmodified lines
28 /// * The `state` maybe owned or mutably borrowed to allow reuses allocated data structures through multiple runs.28 /// * The `state` maybe owned or mutably borrowed to allow reuses allocated data structures through multiple runs.
29 /// * `locate` is a function `f(object_id, &mut buffer) -> Option<TreeIter>` to return a `TreeIter` for the given object id backing29 /// * `locate` is a function `f(object_id, &mut buffer) -> Option<TreeIter>` to return a `TreeIter` for the given object id backing
30 /// its data in the given buffer. Returning `None` is unexpected as these trees are obtained during iteration, and in a typical30 /// 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`]
32 /// should be converted into a more telling error.32 /// should be converted into a more telling error.
33 /// * `delegate` will receive the computed changes, see the [`Visit`][`tree::Visit`] trait for more information on what to expect.33 /// * `delegate` will receive the computed changes, see the [`Visit`][`tree::Visit`] trait for more information on what to expect.
34 ///34 ///