docs: update nonsensitive docs to not show error (#1391)

Signed-off-by: Jonas Bakken <jonasbakken@protonmail.com>
This commit is contained in:
Jonas Bakken 2024-03-29 15:29:02 +01:00 committed by GitHub
parent 08f9a740ac
commit 207a5e20c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,11 +98,7 @@ the local value `mixed_content`, with a valid JSON string assigned to
> nonsensitive(local.mixed_content["username"])
"zqb"
> nonsensitive("clear")
Error: Invalid function argument
Invalid value for "value" parameter: the given value is not sensitive, so this
call is redundant.
"clear"
```
Note though that it's always your responsibility to use `nonsensitive` only