Skip to content

Commit

Permalink
lib/collections.go - fix with_{replace,update} doc (#59)
Browse files Browse the repository at this point in the history
Fix the function name in the with_replace and with_update
examples.
  • Loading branch information
andrewkroh authored Apr 21, 2024
1 parent 4e15126 commit 4f842f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/collections.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,22 +208,22 @@ import (
// Returns the receiver's value with the value of the parameter replacing
// existing fields:
//
// <map<K,V>>.with(<map<K,V>>) -> <map<K,V>>
// <map<K,V>>.with_replace(<map<K,V>>) -> <map<K,V>>
//
// Examples:
//
// {"a":1, "b":2}.with({"a":10, "c":3}) // return {"a":10, "b":2}
// {"a":1, "b":2}.with_replace({"a":10, "c":3}) // return {"a":10, "b":2}
//
// # With Update
//
// Returns the receiver's value with the value of the parameter updating
// the map without replacing any existing fields:
//
// <map<K,V>>.with(<map<K,V>>) -> <map<K,V>>
// <map<K,V>>.with_update(<map<K,V>>) -> <map<K,V>>
//
// Examples:
//
// {"a":1, "b":2}.with({"a":10, "c":3}) // return {"a":1, "b":2, "c":3}
// {"a":1, "b":2}.with_update({"a":10, "c":3}) // return {"a":1, "b":2, "c":3}
//
// # Zip
//
Expand Down

0 comments on commit 4f842f6

Please sign in to comment.