From f82be3d90bef467666b940105f6cde8498da6d5f Mon Sep 17 00:00:00 2001 From: Chris Morrow Date: Mon, 10 Jan 2022 01:57:22 +0000 Subject: [PATCH 1/2] Documentation update. I believe you say: "Step" but mean "Next" since there is no Step() function. --- walker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/walker.go b/walker.go index 5c1bd47..742d5b8 100644 --- a/walker.go +++ b/walker.go @@ -84,7 +84,7 @@ func (w *Walker) Err() error { } // Stat returns info for the most recent file or directory -// visited by a call to Step. +// visited by a call to Next. func (w *Walker) Stat() *Entry { return w.cur.entry } From ee119b0742a681767273a0a3eccf4e3765fd28bb Mon Sep 17 00:00:00 2001 From: Chris Morrow Date: Mon, 10 Jan 2022 02:14:34 +0000 Subject: [PATCH 2/2] Keep the comment markers consistent. --- walker.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/walker.go b/walker.go index 742d5b8..3e0acc3 100644 --- a/walker.go +++ b/walker.go @@ -71,14 +71,14 @@ func (w *Walker) Next() bool { return true } -//SkipDir tells the Next function to skip the currently processed directory +// SkipDir tells the Next function to skip the currently processed directory func (w *Walker) SkipDir() { w.descend = false } -//Err returns the error, if any, for the most recent attempt by Next to -//visit a file or a directory. If a directory has an error, the walker -//will not descend in that directory +// Err returns the error, if any, for the most recent attempt by Next to +// visit a file or a directory. If a directory has an error, the walker +// will not descend in that directory func (w *Walker) Err() error { return w.cur.err }