From e39cd306510d2a7eb4c8eca3e7b1b30d0b98d938 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sun, 29 Nov 2020 11:15:41 +0100 Subject: [PATCH] Correct spelling: othewise -> otherwise --- patricia/patricia.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patricia/patricia.go b/patricia/patricia.go index 7b9975e..1d52cd1 100644 --- a/patricia/patricia.go +++ b/patricia/patricia.go @@ -310,7 +310,7 @@ func (trie *Trie) Delete(key Prefix) (deleted bool) { } // i+1 is always a valid index since i is never pointing to the last node. // The loop above skips at least the last node since we are sure that the item - // is set to nil and it has no children, othewise we would be compacting instead. + // is set to nil and it has no children, otherwise we would be compacting instead. node.children.remove(path[i+1].prefix[0]) Compact: