Update website/docs/language/expressions/for.mdx

This commit is contained in:
Laura Pacilio 2022-10-17 18:31:31 -04:00 committed by GitHub
parent 096510fdfd
commit 9f77c954ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,7 @@ using lexical sorting.
For sets of strings, Terraform sorts the elements by their value, using For sets of strings, Terraform sorts the elements by their value, using
lexical sorting. lexical sorting.
For sets of other types, Terraform uses an arbitrary ordering. For that reason, we recommend converting the result of such an expression to itself be a set so that it's clear elsewhere in the configuration that the result is unordered. You can use [the `toset` function](/language/functions/toset) For sets of other types, Terraform uses an arbitrary ordering. We recommend converting the expression result into a set to make it clear elsewhere in the configuration that the result is unordered. You can use [the `toset` function](/language/functions/toset)
to concisely convert a `for` expression result to be of a set type. to concisely convert a `for` expression result to be of a set type.
```hcl ```hcl