website: Simplify wording for split built-in function (#20803)

The definition of split was referring the built-in function join. However, join is just one of the ways a string might have been created, and this could cause confusion.
This commit is contained in:
Nick Fagerlund 2019-03-25 10:59:58 -07:00 committed by GitHub
parent b32cce9637
commit d0b7771634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -397,8 +397,8 @@ The supported built-in functions are:
strings.
Examples: `sort(aws_instance.foo.*.id)`, `sort(var.list_of_strings)`
* `split(delim, string)` - Splits the string previously created by `join`
back into a list. This is useful for pushing lists through module
* `split(delim, string)` - Returns a list by splitting the string based on
the delimiter. This is useful for pushing lists through module
outputs since they currently only support string values. Depending on the
use, the string this is being performed within may need to be wrapped
in brackets to indicate that the output is actually a list, e.g.