diff --git a/Sources/SwiftyHTMLBuilder/Lib/HTMLBuilder.swift b/Sources/SwiftyHTMLBuilder/Lib/HTMLBuilder.swift index 0aee849..185a44b 100644 --- a/Sources/SwiftyHTMLBuilder/Lib/HTMLBuilder.swift +++ b/Sources/SwiftyHTMLBuilder/Lib/HTMLBuilder.swift @@ -9,8 +9,8 @@ import Foundation @resultBuilder public struct HTMLBuilder { - public static func buildBlock(_ component: any HTMLBase) -> any HTMLBase { - component + public static func buildBlock(_ component: any HTMLBase) -> [any HTMLBase] { + [component] } public static func buildBlock(_ components: any HTMLBase...) -> [any HTMLBase] { components