From b242e2c2cb382c88e3912c738a84645fd8e11c2c Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 24 Jul 2023 11:11:46 -0700 Subject: [PATCH] net/art: reword confusing function docstring Updates #7781 Signed-off-by: David Anderson --- net/art/stride_table.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/art/stride_table.go b/net/art/stride_table.go index 5d5ae5c9e..37eb5d4e1 100644 --- a/net/art/stride_table.go +++ b/net/art/stride_table.go @@ -119,8 +119,8 @@ func (t *strideTable[T]) getValAndChild(addr uint8) (*T, *strideTable[T]) { return t.entries[idx].value, t.entries[idx].child } -// findFirstChild returns the first non-nil child strideTable in t, or -// nil if t has no children. +// findFirstChild returns the first child strideTable in t, or nil if +// t has no children. func (t *strideTable[T]) findFirstChild() *strideTable[T] { for i := firstHostIndex; i <= lastHostIndex; i++ { if child := t.entries[i].child; child != nil {