From 07d1f44c5fba94ca65ab19b9d1ed12b5403361b6 Mon Sep 17 00:00:00 2001 From: Gajendra Gouda Date: Sun, 7 Jun 2026 03:11:08 +0530 Subject: [PATCH] docs: fix hcldec guide example and DecodeBody reference --- guide/go_decoding_hcldec.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/go_decoding_hcldec.rst b/guide/go_decoding_hcldec.rst index f05b92692..b1eebbb3a 100644 --- a/guide/go_decoding_hcldec.rst +++ b/guide/go_decoding_hcldec.rst @@ -191,7 +191,7 @@ to learn which plugins are needed, but process the block bodies dynamically: } for _, sc := range c.Services { - pluginName := block.Type + pluginName := sc.Type // Totally-hypothetical plugin manager (not part of HCL) plugin, err := pluginMgr.GetPlugin(pluginName) @@ -220,7 +220,7 @@ Variables and Functions ----------------------- The final argument to ``hcldec.Decode`` is an expression evaluation context, -just as with ``gohcl.DecodeBlock``. +just as with ``gohcl.DecodeBody``. This object can be constructed using :ref:`the gohcl helper function ` as before if desired, but