Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions guide/go_decoding_hcldec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 <go-decoding-gohcl-evalcontext>` as before if desired, but
Expand Down