mirror of https://github.com/apple/pkl-swift
Use `static loadFrom(source:)` in the quickstart (#10)
This commit is contained in:
parent
7d573f7c5f
commit
efbca4eb59
|
@ -106,7 +106,7 @@ Once defined, evaluate the Pkl module into Swift data.
|
||||||
[source,swift]
|
[source,swift]
|
||||||
----
|
----
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let config = try await AppConfig.loadFromPath("pkl/local/appConfig.pkl")
|
let config = try await AppConfig.loadFrom(source: .path("pkl/local/appConfig.pkl"))
|
||||||
print("I'm running on host \(config.host)\n")
|
print("I'm running on host \(config.host)\n")
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
Loading…
Reference in New Issue