diff --git a/lib/elixir/lib/kernel.ex b/lib/elixir/lib/kernel.ex index 7a5237a9db..f19ad4a0d0 100644 --- a/lib/elixir/lib/kernel.ex +++ b/lib/elixir/lib/kernel.ex @@ -2449,8 +2449,6 @@ defmodule Kernel do * when updating a struct, as in `struct!(%SomeStruct{}, key: :value)`, it is equivalent to `%SomeStruct{struct | key: :value}` and therefore this function will check if every given key-value belongs to the struct. - However, updating structs does not enforce keys, as keys are enforced - only when building; """ @spec struct!(module | struct, Enumerable.t()) :: struct