Skip to content

Commit cf89ffd

Browse files
committed
fix: typos
1 parent 3d250d2 commit cf89ffd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/typed_structor.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ defmodule TypedStructor do
263263
# A type parameter named int
264264
parameter :int
265265
266-
fied :number, int # not int()
266+
field :number, int # not int()
267267
"""
268268
defmacro parameter(name, opts \\ [])
269269

lib/typed_structor/definer/defrecord.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule TypedStructor.Definer.Defrecord do
66
"""
77

88
@moduledoc """
9-
A definer to define record macors and a type for a given definition.
9+
A definer to define record macros and a type for a given definition.
1010
1111
## Additional options for `typed_structor`
1212
@@ -17,7 +17,7 @@ defmodule TypedStructor.Definer.Defrecord do
1717
defmodule MyRecord do
1818
use TypedStructor
1919
20-
typed_structor definer: :defrecord, record_name: :user, record_tag: User, define_recrod: true do
20+
typed_structor definer: :defrecord, record_name: :user, record_tag: User, define_record: true do
2121
field :name, String.t(), enforce: true
2222
field :age, pos_integer(), enforce: true
2323
end

test/support/guide_case.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ defmodule TypedStructor.GuideCase do
3939
|> Enum.with_index(1)
4040
|> extract_code(%{in_code_block?: false, codes: []})
4141
|> case do
42-
%{codes: [implementation, usage | _resut]} ->
42+
%{codes: [implementation, usage | _result]} ->
4343
"""
4444
#{implementation |> Enum.reverse() |> Enum.join("\n")}
4545
#{usage |> Enum.reverse() |> Enum.join("\n")}

0 commit comments

Comments
 (0)