Skip to content

Commit 1921765

Browse files
authored
Fix Kernel defstruct types docs phrasing (#15024)
1 parent 0e3d22f commit 1921765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5593,8 +5593,8 @@ defmodule Kernel do
55935593
## Types
55945594
55955595
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:
5596+
is called `t`. To define a type for a struct, the struct literal syntax is
5597+
used:
55985598
55995599
defmodule User do
56005600
defstruct name: "John", age: 25

0 commit comments

Comments
 (0)