Use `static loadFrom(source:)` in the quickstart (#10)

This commit is contained in:
Shinichiro Oba 2024-02-07 01:39:18 +09:00 committed by GitHub
parent 7d573f7c5f
commit efbca4eb59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ Once defined, evaluate the Pkl module into Swift data.
[source,swift]
----
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")
}
----