From 71cb27e999cab3e8131e545369618fea5053c4fb Mon Sep 17 00:00:00 2001 From: silicium14 <13800015+silicium14@users.noreply.github.com> Date: Sun, 17 Oct 2021 18:57:15 +0200 Subject: Replace Result with Option in map.update doc --- src/gleam/map.gleam | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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)]) -- cgit v1.2.3