From 923d5d9bf89eb5116e1236b06ad59f25792404ce Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 23 May 2026 23:48:42 +0300 Subject: =?UTF-8?q?docs(rpn):=20fix=20=5Fsentinel=20comment=20=E2=80=94=20?= =?UTF-8?q?remove=20reference=20to=20nonexistent=20lookups?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- internal/rpn/metric_type.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') 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 ) -- cgit v1.2.3