From b25cec31b9987bb7e6a476be19d16ca17e1e7263 Mon Sep 17 00:00:00 2001 From: The L D O Date: Thu, 8 Feb 2024 02:58:57 +0100 Subject: [PATCH] update 'Loading Modules' example to match config contents (#84) Co-authored-by: Daniel Chao --- docs/modules/pkl-cli/pages/index.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/modules/pkl-cli/pages/index.adoc b/docs/modules/pkl-cli/pages/index.adoc index dc85f96f..cc445835 100644 --- a/docs/modules/pkl-cli/pages/index.adoc +++ b/docs/modules/pkl-cli/pages/index.adoc @@ -650,11 +650,11 @@ To load <> into the REPL, run: pkl> :load config.pkl ---- -To evaluate the `bird.name` property, run: +To evaluate the `bird.species` property, run: [source,shell] ---- -pkl> bird.name +pkl> bird.species "Pigeon" ---- @@ -716,7 +716,7 @@ pkl> hello pkl> function double(n) = 2 * n pkl> double(5) 10 -pkl> class Bird { name: String } +pkl> class Bird { species: String } pkl> new Bird { species = "Pigeon" } { name = ? @@ -748,7 +748,7 @@ Due to Pkl's late binding semantics, redefining a member affects dependent membe [source,shell] ---- pkl> name = "Barn" -pkl> species = "$name Owl" +pkl> species = "\(name) Owl" pkl> species "Barn Owl" pkl> name = "Elf"