Skip to content

Commit c9be722

Browse files
committed
update comments
1 parent 5646476 commit c9be722

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

orderedmap.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Package orderedmap provides a thread-safe, generic ordered map that maintains insertion order
22
// while providing O(1) lookups. Unlike Go's built-in map, OrderedMap iterates in the order items
3-
// were added, preventing UI flickering and enabling predictable, deterministic behavior.
3+
// were added, enabling predictable, deterministic behavior.
44
package orderedmap
55

66
import "sync"
@@ -14,7 +14,6 @@ type node[K comparable, V any] struct {
1414
}
1515

1616
// OrderedMap maintains insertion order while providing O(1) lookups, deletes, and moves
17-
// This prevents UI flickering from Go's random map iteration order
1817
//
1918
// Thread-safe: All operations use internal locking
2019
// Zero value is usable: var om OrderedMap[K,V] works without initialization

0 commit comments

Comments
 (0)