We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b87b4d commit 7c6efcfCopy full SHA for 7c6efcf
lib/elixir/lib/kernel.ex
@@ -2449,8 +2449,6 @@ defmodule Kernel do
2449
* when updating a struct, as in `struct!(%SomeStruct{}, key: :value)`,
2450
it is equivalent to `%SomeStruct{struct | key: :value}` and therefore this
2451
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;
2454
2455
"""
2456
@spec struct!(module | struct, Enumerable.t()) :: struct
0 commit comments