From 3d9983d30371dd337bf7517eb687ba2abb43e2e9 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 12 Oct 2023 12:02:43 -0400 Subject: [PATCH] docs: small typo in an example (#5456) (#5461) 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 0b8f3a01c1ac..77fab0d2df53 100644 --- a/docs/sources/flow/config-language/expressions/function_calls.md +++ b/docs/sources/flow/config-language/expressions/function_calls.md @@ -28,7 +28,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" >}}