Skip to content

Commit

Permalink
Explain the nonsense of dropping keys from new map
Browse files Browse the repository at this point in the history
  • Loading branch information
krnowak committed Feb 3, 2020
1 parent 719ef91 commit 6e8c0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/correlation/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func NewEmptyMap() Map {

// NewMap creates a map with the contents of the update applied. In
// this function, having an update with DropSingleK or DropMultiK
// makes no sense.
// makes no sense - those fields are effectively ignored.
func NewMap(update MapUpdate) Map {
return NewEmptyMap().Apply(update)
}
Expand Down

0 comments on commit 6e8c0d3

Please sign in to comment.