We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e3d22f commit 1921765Copy full SHA for 1921765
1 file changed
lib/elixir/lib/kernel.ex
@@ -5593,8 +5593,8 @@ defmodule Kernel do
5593
## Types
5594
5595
It is recommended to define types for structs. By convention, such a type
5596
- is called `t`. To define a struct inside a type, the struct literal syntax
5597
- is used:
+ is called `t`. To define a type for a struct, the struct literal syntax is
+ used:
5598
5599
defmodule User do
5600
defstruct name: "John", age: 25
0 commit comments