From 1b208f852caf8dbdabab3778ff9de1c317ed0513 Mon Sep 17 00:00:00 2001 From: GrantA Date: Tue, 13 Feb 2024 11:34:49 -0500 Subject: [PATCH] Update docs/modules/language-tutorial/pages/02_filling_out_a_template.adoc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Philip K.F. Hölzenspies --- .../language-tutorial/pages/02_filling_out_a_template.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/language-tutorial/pages/02_filling_out_a_template.adoc b/docs/modules/language-tutorial/pages/02_filling_out_a_template.adoc index 38a66e9a..4c19f886 100644 --- a/docs/modules/language-tutorial/pages/02_filling_out_a_template.adoc +++ b/docs/modules/language-tutorial/pages/02_filling_out_a_template.adoc @@ -382,7 +382,7 @@ pipelines { So far, you've defined objects the same way you amended them. If the name `foo` didn't occur before, `foo { ... }` _creates_ a property called `foo` and assigns to it the contents in place of the `...` (given that `...` is not valid Pkl, but an abbreviation for illustration purposes). -If `name` is an existing object, this notation is an _amend expression_; resulting in a new _object_ (value), but _not_ a new (named) property. +If `foo` is an existing object, this notation is an _amend expression_; resulting in a new _object_ (value), but _not_ a new (named) property. Since `pipelines` is a listing, you can _add_ elements by writing expressions in an amend expression. In this case, though, there is no object to amend. Writing `pipelines { ... }` defines a _property_, but listings may only include _elements_.