Skip to content

Commit

Permalink
[fix] Linux compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsMoll committed Dec 29, 2019
1 parent 487020a commit 9a1ec64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/HTMLKit/View Builders/TemplateBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ public struct Stylesheet: HTMLComponent {
@TemplateValue(String.self)
var url

public init(_ url: TemplateValue<String>) {
public init(url: TemplateValue<String>) {
self.url = url
}

Expand Down
4 changes: 2 additions & 2 deletions Tests/HTMLKitTests/HTMLTestDocuments.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct BaseView: HTMLComponent {
Title { context }
.useTwitter(metadata: false)
.useOpenGraph(metadata: false)
Stylesheet("some url")
Stylesheet(url: "some url")
Meta()
.name(.viewport)
.content("width=device-width, initial-scale=1.0")
Expand Down Expand Up @@ -1138,7 +1138,7 @@ struct MetadataTest: HTMLPage {
Document(type: .html5) {
Head {
Author { "Mats" }
.twitter(handle: .constant("@MatsMoll"))
.twitter(handle: "@MatsMoll")
Title { "Some title" }
Description { "Some description" }
}
Expand Down

0 comments on commit 9a1ec64

Please sign in to comment.