update internal references to Result.map

This commit is contained in:
Ian McLerran 2025-01-15 19:52:14 -06:00
parent 326558337c
commit 297dd0233e
No known key found for this signature in database
GPG key ID: 022CF95852BFF343
6 changed files with 11 additions and 11 deletions

View file

@ -54,8 +54,8 @@ with_default = \result, default ->
## function on it. Then returns a new `Ok` holding the transformed value. If the
## result is `Err`, this has no effect. Use [map_err] to transform an `Err`.
## ```roc
## Result.map(Ok(12), Num.neg)
## Result.map(Err("yipes!"), Num.neg)
## Result.map_ok(Ok(12), Num.neg)
## Result.map_ok(Err("yipes!"), Num.neg)
## ```
##
## Functions like `map` are common in Roc; see for example [List.map],