Skip to content

Commit 3669864

Browse files
jclemchristopheradams
authored andcommitted
Fix @type in naming-main-types
The type `t` doesn't match the default struct `%__MODULE__{name: nil, params: []}`. This adds `nil` to the possible types. An alternative would be to default `name` to an empty string.
1 parent f910cbf commit 3669864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ directives (see [Modules](#modules)).
918918
defstruct name: nil, params: []
919919

920920
@type t :: %__MODULE__{
921-
name: String.t,
921+
name: String.t | nil,
922922
params: Keyword.t
923923
}
924924
```

0 commit comments

Comments
 (0)