Skip to content

Commit

Permalink
modify docstring for All
Browse files Browse the repository at this point in the history
  • Loading branch information
gaissmai committed Apr 30, 2024
1 parent 3fa4a54 commit dfeafd0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions table.go
Original file line number Diff line number Diff line change
Expand Up @@ -674,12 +674,10 @@ func (t *Table[V]) Clone() *Table[V] {
return c
}

// All iterates through the routing table and calls the yield function
// for each route entry with prefix and value.
// If the yield function returns false the iteration ends prematurely
// and the false is propagated.
// All may be used in a for/range loop to iterate
// through all the prefixes.
//
// Prefixes must not be inserted or deleted by the yield function, otherwise
// Prefixes must not be inserted or deleted during iteration, otherwise
// the behavior is undefined. However, value updates are permitted.
//
// The iteration order is not specified and is not part of the
Expand Down

0 comments on commit dfeafd0

Please sign in to comment.