doc: add doc for OrderedMap

This commit is contained in:
dudaodong committed 2024-09-02 11:19:05 +08:00
1 parent 5a38e34063
commit 81b29baf30
4 files changed
+1681 -5

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ func NewOrderedMap[K comparable, V any]() *OrderedMap[K, V] {
}
}
// Get returns the value for the given key.
// Sets the given key-value pair.
// Play: todo
func (om *OrderedMap[K, V]) Set(key K, value V) {
om.mu.Lock()