Skip to content

Commit b91893f

Browse files
committed
Fix documentation for Sort::TOPOLOGICAL
The libgit2 documentation says "no parents before all of its children are shown", which is exactly the opposite of what the rust docstring said.
1 parent bbc4830 commit b91893f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ bitflags! {
377377
/// change at any time. This is the default sorting for new walkers.
378378
const NONE = raw::GIT_SORT_NONE as u32;
379379

380-
/// Sort the repository contents in topological order (parents before
381-
/// children).
380+
/// Sort the repository contents in topological order (children before
381+
/// parents).
382382
///
383383
/// This sorting mode can be combined with time sorting.
384384
const TOPOLOGICAL = raw::GIT_SORT_TOPOLOGICAL as u32;

0 commit comments

Comments
 (0)