mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
net/art: reword confusing function docstring
Updates #7781 Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
8478358d77
commit
b242e2c2cb
@ -119,8 +119,8 @@ func (t *strideTable[T]) getValAndChild(addr uint8) (*T, *strideTable[T]) {
|
|||||||
return t.entries[idx].value, t.entries[idx].child
|
return t.entries[idx].value, t.entries[idx].child
|
||||||
}
|
}
|
||||||
|
|
||||||
// findFirstChild returns the first non-nil child strideTable in t, or
|
// findFirstChild returns the first child strideTable in t, or nil if
|
||||||
// nil if t has no children.
|
// t has no children.
|
||||||
func (t *strideTable[T]) findFirstChild() *strideTable[T] {
|
func (t *strideTable[T]) findFirstChild() *strideTable[T] {
|
||||||
for i := firstHostIndex; i <= lastHostIndex; i++ {
|
for i := firstHostIndex; i <= lastHostIndex; i++ {
|
||||||
if child := t.entries[i].child; child != nil {
|
if child := t.entries[i].child; child != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user