Skip to content

Commit 96f1c15

Browse files
authored
Merge pull request #7 from sax/fix-typespec
Fix write typespec to handle lists of strings
2 parents 66ad95c + 53f2971 commit 96f1c15

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/mudbrick/text_block.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ defmodule Mudbrick.TextBlock do
2727
@type part_options :: [part_option()]
2828

2929
@type write_tuple :: {String.t(), part_options()}
30+
@type write_part :: String.t() | write_tuple()
3031

3132
@type write ::
32-
String.t()
33-
| write_tuple()
34-
| list(write_tuple())
33+
write_part()
34+
| list(write_part())
3535

3636
@type t :: %__MODULE__{
3737
align: alignment(),

0 commit comments

Comments
 (0)