Skip to content

Commit 12dc4b5

Browse files
Improve Map.pop!/2 docs
1 parent 6d44df6 commit 12dc4b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/elixir/lib/map.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,10 @@ defmodule Map do
709709
end
710710

711711
@doc """
712-
Removes the value associated with `key` in `map` and returns the value
713-
and the updated map, or it raises if `key` is not present.
712+
Removes and returns the value associated with `key` in `map` alongside
713+
the updated map, or raises if `key` is not present.
714714
715-
Behaves the same as `pop/3` but raises if `key` is not present in `map`.
715+
Behaves the same as `pop/3` but raises a `KeyError` exception if `key` is not present in `map`.
716716
717717
## Examples
718718

0 commit comments

Comments
 (0)