Skip to content

Commit

Permalink
Update HTMLBuilder.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
yukiny0811 committed Jun 20, 2023
1 parent 43f9458 commit 12f2850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftyHTMLBuilder/Lib/HTMLBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12f2850

Please sign in to comment.