From b8a0929a5d607f1dc8ebc5ca8ed4a29450e4bcee Mon Sep 17 00:00:00 2001 From: Paul Tyng Date: Sat, 10 Apr 2021 15:55:29 -0400 Subject: [PATCH] Add null to tostring docs --- website/docs/language/functions/tostring.html.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/docs/language/functions/tostring.html.md b/website/docs/language/functions/tostring.html.md index 667b3619a0..bbe11acfdf 100644 --- a/website/docs/language/functions/tostring.html.md +++ b/website/docs/language/functions/tostring.html.md @@ -14,7 +14,7 @@ Explicit type conversions are rarely necessary in Terraform because it will convert types automatically where required. Use the explicit type conversion functions only to normalize types returned in module outputs. -Only the primitive types (string, number, and bool) can be converted to string. +Only the primitive types (string, number, and bool) and `null` can be converted to string. All other values will produce an error. ## Examples @@ -26,6 +26,8 @@ hello 1 > tostring(true) true +> tostring(null) +null > tostring([]) Error: Invalid function argument