diff options
author | silicium14 <13800015+silicium14@users.noreply.github.com> | 2021-10-17 18:57:15 +0200 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2021-10-22 23:06:50 +0100 |
commit | 71cb27e999cab3e8131e545369618fea5053c4fb (patch) | |
tree | 082bc8bc0416d023fa8de8297148acbf4ca0cf7f /src | |
parent | 8abe053e33c3d3b99d2d069fef11ef9f1402b168 (diff) | |
download | gleam_stdlib-71cb27e999cab3e8131e545369618fea5053c4fb.tar.gz gleam_stdlib-71cb27e999cab3e8131e545369618fea5053c4fb.zip |
Replace Result with Option in map.update doc
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/map.gleam | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gleam/map.gleam b/src/gleam/map.gleam index 24c5d29..cf3d375 100644 --- a/src/gleam/map.gleam +++ b/src/gleam/map.gleam @@ -425,14 +425,14 @@ pub fn drop(from map: Map(k, v), drop disallowed_keys: List(k)) -> Map(k, v) { /// Creates a new map with one entry updated using a given function. /// /// If there was not an entry in the map for the given key then the function -/// gets `Error(Nil)` as its argument, otherwise it gets `Ok(value)`. +/// gets `None` as its argument, otherwise it gets `Some(value)`. /// /// ## Example /// /// > let increment = fn(x) { /// > case x { -/// > Ok(i) -> i + 1 -/// > Error(Nil) -> 0 +/// > Some(i) -> i + 1 +/// > None -> 0 /// > } /// > } /// > let map = from_list([#("a", 0)]) |