Skip to content

Commit 5512cd2

Browse files
- update docs.
1 parent 03af391 commit 5512cd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ordered_map.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ func (o *OrderedMapIntFloat64) Set(key int, val float64) {
4646
}
4747

4848
// Delete will remove the key from the OrderedMapIntFloat64.
49+
// For performance reasons, ensure the key exists beforehand when in ordered mode.
4950
func (o *OrderedMapIntFloat64) Delete(key int) {
5051
if o.keys == nil {
5152
// unordered
@@ -137,6 +138,7 @@ func (o *OrderedMapIntMixed) Set(key int, val interface{}) {
137138
}
138139

139140
// Delete will remove the key from the OrderedMapIntMixed.
141+
// For performance reasons, ensure the key exists beforehand when in ordered mode.
140142
func (o *OrderedMapIntMixed) Delete(key int) {
141143
if o.keys == nil {
142144
// unordered

0 commit comments

Comments
 (0)