From 016c34ecb966f2caca4a966f9a4f6f749f19f825 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Sun, 5 Nov 2023 09:00:35 -0500 Subject: [PATCH] hierarchy: comment on interface used Signed-off-by: Vincent Batts --- hierarchy.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hierarchy.go b/hierarchy.go index 0c3b895..f004934 100644 --- a/hierarchy.go +++ b/hierarchy.go @@ -11,7 +11,8 @@ type DirectoryHierarchy struct { Entries []Entry } -// WriteTo simplifies the output of the resulting hierarchy spec +// WriteTo simplifies the output of the resulting hierarchy spec. +// Satisfies the `io.WriterTo` interface. func (dh DirectoryHierarchy) WriteTo(w io.Writer) (n int64, err error) { sort.Sort(byPos(dh.Entries)) var sum int64