Skip to content

Commit 7c6efcf

Browse files
authored
No need to mention key enforcement on struct update (#13990)
1 parent 8b87b4d commit 7c6efcf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2449,8 +2449,6 @@ defmodule Kernel do
24492449
* when updating a struct, as in `struct!(%SomeStruct{}, key: :value)`,
24502450
it is equivalent to `%SomeStruct{struct | key: :value}` and therefore this
24512451
function will check if every given key-value belongs to the struct.
2452-
However, updating structs does not enforce keys, as keys are enforced
2453-
only when building;
24542452
24552453
"""
24562454
@spec struct!(module | struct, Enumerable.t()) :: struct

0 commit comments

Comments
 (0)