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 8a513af commit 9a1c722Copy full SHA for 9a1c722
lib/elixir/pages/getting-started/structs.md
@@ -86,7 +86,7 @@ iex> john = %User{name: "John", age: 27}
86
iex> updates = [name: "Jane", age: 30]
87
[name: "Jane", age: 30]
88
iex> struct!(john, updates)
89
-%User{age: 27, name: "Jane"}
+%User{age: 30, name: "Jane"}
90
```
91
92
`struct!/2` will raise an error if you try to set invalid fields:
0 commit comments