From 2348ac891bc4be20b3f898846212d332af1895ea Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Sun, 13 Oct 2024 15:56:50 +0900 Subject: [PATCH] document --- trie.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trie.go b/trie.go index aa7e48a..0374c69 100644 --- a/trie.go +++ b/trie.go @@ -62,7 +62,9 @@ type Node[K cmp.Ordered, V any] interface { // Parent returns the parent of this node Parent() Node[K, V] - // Ancestors returns a sequence of ancestors of this node + // Ancestors returns a sequence of ancestors of this node. + // The first element is the root element, progressing all the way + // up to the parent of this node. Ancestors() iter.Seq[Node[K, V]] }