Skip to content

Commit ec26774

Browse files
committed
Fix arity of Map.replace!/3
1 parent bb9721f commit ec26774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Map.replace(map, :key, 123)
7979

8080
In other words, if the key exists, it would have been replaced by an integer value. Furthermore, whenever calling a function in the `Map` module and the given key is statically proven to never exist in the map, an error is emitted.
8181

82-
By combining full type inference with bang operations like `Map.fetch!/2`, `Map.pop!/2`, `Map.replace!/2`, and `Map.update!/3`, Elixir is able to propagate information about the desired keys. Take this module:
82+
By combining full type inference with bang operations like `Map.fetch!/2`, `Map.pop!/2`, `Map.replace!/3`, and `Map.update!/3`, Elixir is able to propagate information about the desired keys. Take this module:
8383

8484
```elixir
8585
defmodule User do

0 commit comments

Comments
 (0)