From b3eb3b589450a88cb9366147e11ddd2a6e3941c6 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 12 Oct 2023 12:03:01 -0400 Subject: [PATCH] docs: small typo in an example (#5456) (#5460) Hello :) The exported field for local.file is `content` and not `content`. :) https://grafana.com/docs/agent/latest/flow/reference/components/local.file/#exported-fields Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com> (cherry picked from commit 73c2642b37fbe4ed2e0e24c9423eeee540d43490) Co-authored-by: Maxime Le Conte des Floris --- docs/sources/flow/config-language/expressions/function_calls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sources/flow/config-language/expressions/function_calls.md b/docs/sources/flow/config-language/expressions/function_calls.md index 311d1892b382..2a8da9dbacd5 100644 --- a/docs/sources/flow/config-language/expressions/function_calls.md +++ b/docs/sources/flow/config-language/expressions/function_calls.md @@ -25,7 +25,7 @@ allow for more complex expressions (e.g. concatenating arrays or decoding JSON strings into objects). ```river env("HOME") -json_decode(local.file.cfg.contents)["namespace"] +json_decode(local.file.cfg.content)["namespace"] ``` [standard library]: {{< relref "../../reference/stdlib" >}}