From 2f26e369f94e57663f074a450e9f02ed0add7d82 Mon Sep 17 00:00:00 2001 From: weiihann Date: Thu, 12 Dec 2024 18:44:44 +0800 Subject: [PATCH] nitpick --- utils/orderedset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/orderedset.go b/utils/orderedset.go index cce45285c..1fd9ed3ae 100644 --- a/utils/orderedset.go +++ b/utils/orderedset.go @@ -10,7 +10,7 @@ import ( // - Uses a slice to maintain insertion order and enable ordered iteration // The data structure is safe for concurrent access through the use of a read-write mutex. type OrderedSet[K comparable, V any] struct { - itemPos map[K]int // position of the node in the list + itemPos map[K]int // position of the item in the list items []V lock sync.RWMutex }