From b91893f72ff7c7b9e07189f39805f4c796eeb03e Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Thu, 4 Oct 2018 21:54:45 +0200 Subject: [PATCH] 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. --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1c49ba6df9..2d476ece33 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -377,8 +377,8 @@ bitflags! { /// change at any time. This is the default sorting for new walkers. const NONE = raw::GIT_SORT_NONE as u32; - /// Sort the repository contents in topological order (parents before - /// children). + /// Sort the repository contents in topological order (children before + /// parents). /// /// This sorting mode can be combined with time sorting. const TOPOLOGICAL = raw::GIT_SORT_TOPOLOGICAL as u32;