From fe59bbe5cc7f158318a9631d96683d2df264a3c1 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Tue, 16 Apr 2024 17:47:43 +0800 Subject: [PATCH] all: fix function names in comment Change-Id: I4a262a85ba3eaf7a4a5d742b1b1ebd0b3312979c Reviewed-on: https://go-review.googlesource.com/c/exp/+/579196 LUCI-TryBot-Result: Go LUCI Run-TryBot: shuang cui Reviewed-by: Ian Lance Taylor Reviewed-by: qiu laidongfeng2 <2645477756@qq.com> TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor Reviewed-by: Cherry Mui --- maps/maps_test.go | 2 +- trace/order.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/maps/maps_test.go b/maps/maps_test.go index bf7c6f4bb..0f40eb747 100644 --- a/maps/maps_test.go +++ b/maps/maps_test.go @@ -83,7 +83,7 @@ func equalNaN[T comparable](v1, v2 T) bool { return v1 == v2 || (isNaN(v1) && isNaN(v2)) } -// equalStr compares ints and strings. +// equalIntStr compares ints and strings. func equalIntStr(v1 int, v2 string) bool { return strconv.Itoa(v1) == v2 } diff --git a/trace/order.go b/trace/order.go index 2e6d96c16..fec408793 100644 --- a/trace/order.go +++ b/trace/order.go @@ -1240,7 +1240,7 @@ func (s *rangeState) hasRange(typ rangeType) bool { return false } -// endsRange ends a special range in time on the goroutine. +// endRange ends a special range in time on the goroutine. // // This must line up with the start event type of the range the goroutine is currently in. func (s *rangeState) endRange(typ event.Type) (stringID, error) {