mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
fix typo in Dict.update docs
`Err` branch fix Signed-off-by: Stuart Hinson <stuart.hinson@gmail.com>
This commit is contained in:
parent
35359a5b37
commit
3739023f2a
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ removeHelper = \buckets, bucketIndex, distAndFingerprint, data, key ->
|
|||
## alterValue : Result Bool [Missing] -> Result Bool [Missing]
|
||||
## alterValue = \possibleValue ->
|
||||
## when possibleValue is
|
||||
## Err -> Ok Bool.false
|
||||
## Err Missing -> Ok Bool.false
|
||||
## Ok value -> if value then Err Missing else Ok Bool.true
|
||||
##
|
||||
## expect Dict.update (Dict.empty {}) "a" alterValue == Dict.single "a" Bool.false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue