diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-23 23:48:42 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-23 23:48:42 +0300 |
| commit | 923d5d9bf89eb5116e1236b06ad59f25792404ce (patch) | |
| tree | 396a1bf8359c067b4e5d8ab5ce6edb4480225f01 | |
| parent | 5e52d5ce222d9dd65c343b5b99c6b1b15ce54fe1 (diff) | |
docs(rpn): fix _sentinel comment — remove reference to nonexistent lookups
The comment claimed _sentinel was used by 'other range-based lookups'
besides parseCategory(), but no such lookups exist. Also replaced
'marks the upper bound for range-based Category iteration' with
'bounded Category iteration' since the actual code uses a traditional
for loop, not a Go for...range construct.
| -rw-r--r-- | internal/rpn/metric_type.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/rpn/metric_type.go b/internal/rpn/metric_type.go index 1a9c9f5..8f49ea4 100644 --- a/internal/rpn/metric_type.go +++ b/internal/rpn/metric_type.go @@ -25,9 +25,9 @@ const ( Distance // Custom is for user-defined units. Custom - // _sentinel marks the upper bound for range-based Category iteration. + // _sentinel marks the upper bound for bounded Category iteration. // Adding a new Category: insert before _sentinel, and it will be - // automatically picked up by parseCategory() and other range-based lookups. + // automatically picked up by parseCategory(). _sentinel ) |
