Skip to content

Commit 8c7f3c5

Browse files
committed
Fix th init
1 parent 496a47c commit 8c7f3c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftHtml/Html/Tags/Th.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/// The text in `<td>` elements are regular and left-aligned by default.
1818
public final class Th: Tag {
1919

20-
public init(_ contents: String, @TagBuilder _ builder: () -> [Tag]) {
20+
public init(_ contents: String? = nil, @TagBuilder _ builder: () -> [Tag]) {
2121
super.init(Node(type: .standard, name: "th", contents: contents), children: builder())
2222
}
2323

0 commit comments

Comments
 (0)