Add null to tostring docs

This commit is contained in:
Paul Tyng 2021-04-10 15:55:29 -04:00 committed by GitHub
parent b3fe8713e8
commit b8a0929a5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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 convert types automatically where required. Use the explicit type conversion
functions only to normalize types returned in module outputs. 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. All other values will produce an error.
## Examples ## Examples
@ -26,6 +26,8 @@ hello
1 1
> tostring(true) > tostring(true)
true true
> tostring(null)
null
> tostring([]) > tostring([])
Error: Invalid function argument Error: Invalid function argument