From 14dec716cfb8a368e3cac0e4228179c1bf17a677 Mon Sep 17 00:00:00 2001 From: Les Hill Date: Tue, 13 Feb 2024 09:36:13 -0800 Subject: [PATCH] Add details to show amending working when using modules Running through the tutorial, the amending was stated in the tutorial text but not visible in the tutorial output since `parrot.pkl` was replacing all the members of `pigeon.pkl`. --- .../language-tutorial/pages/02_filling_out_a_template.adoc | 6 ++++++ 1 file changed, 6 insertions(+) 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 721c3a98..20e7b942 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 @@ -206,6 +206,8 @@ Going back to the example above, you can write `parrot` as a separate module. name = "Common wood pigeon" diet = "Seeds" taxonomy { + kingdom = "Animalia" + clade = "Dinosauria" species = "Columba palumbus" } ---- @@ -236,6 +238,8 @@ $ pkl eval /Users/me/tutorial/pigeon.pkl name = "Common wood pigeon" diet = "Seeds" taxonomy { + kingdom = "Animalia" + clade = "Dinosauria" species = "Columba palumbus" } @@ -244,6 +248,8 @@ parrot { name = "Great green macaw" diet = "Berries" taxonomy { + kingdom = "Animalia" + clade = "Dinosauria" species = "Ara ambiguus" } }