From ffa87f9678370236d4ffd1d06ab4ad8bf7e5f66a Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Mon, 24 Aug 2015 20:06:13 -0700 Subject: [PATCH] storage: fix the comment in generation.walk --- storage/key_index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/key_index.go b/storage/key_index.go index 65f70269a..44b9a821e 100644 --- a/storage/key_index.go +++ b/storage/key_index.go @@ -240,7 +240,7 @@ type generation struct { func (g *generation) isEmpty() bool { return g == nil || len(g.revs) == 0 } -// walk walks through the revisions in the generation in ascending order. +// walk walks through the revisions in the generation in descending order. // It passes the revision to the given function. // walk returns until: 1. it finishs walking all pairs 2. the function returns false. // walk returns the position at where it stopped. If it stopped after