fix typo in Dict.update docs

`Err` branch fix

Signed-off-by: Stuart Hinson <stuart.hinson@gmail.com>
This commit is contained in:
Stuart Hinson 2024-10-15 13:19:36 -04:00 committed by GitHub
parent 35359a5b37
commit 3739023f2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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