docs: Minor spelling and typo fixes
This commit is contained in:
parent
3b0de1aa88
commit
853a0e0677
|
@ -940,7 +940,7 @@ var ReverseFunc = function.New(&function.Spec{
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
// SetProductFunc calculates the cartesian product of two or more sets or
|
// SetProductFunc calculates the Cartesian product of two or more sets or
|
||||||
// sequences. If the arguments are all lists then the result is a list of tuples,
|
// sequences. If the arguments are all lists then the result is a list of tuples,
|
||||||
// preserving the ordering of all of the input lists. Otherwise the result is a
|
// preserving the ordering of all of the input lists. Otherwise the result is a
|
||||||
// set of tuples.
|
// set of tuples.
|
||||||
|
@ -1491,7 +1491,7 @@ func Reverse(list cty.Value) (cty.Value, error) {
|
||||||
return ReverseFunc.Call([]cty.Value{list})
|
return ReverseFunc.Call([]cty.Value{list})
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetProduct computes the cartesian product of sets or sequences.
|
// SetProduct computes the Cartesian product of sets or sequences.
|
||||||
func SetProduct(sets ...cty.Value) (cty.Value, error) {
|
func SetProduct(sets ...cty.Value) (cty.Value, error) {
|
||||||
return SetProductFunc.Call(sets)
|
return SetProductFunc.Call(sets)
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ var SortFunc = function.New(&function.Spec{
|
||||||
|
|
||||||
if !listVal.IsWhollyKnown() {
|
if !listVal.IsWhollyKnown() {
|
||||||
// If some of the element values aren't known yet then we
|
// If some of the element values aren't known yet then we
|
||||||
// can't yet preduct the order of the result.
|
// can't yet predict the order of the result.
|
||||||
return cty.UnknownVal(retType), nil
|
return cty.UnknownVal(retType), nil
|
||||||
}
|
}
|
||||||
if listVal.LengthInt() == 0 { // Easy path
|
if listVal.LengthInt() == 0 { // Easy path
|
||||||
|
|
|
@ -19,7 +19,7 @@ Usage: `terraform providers schema [options]`
|
||||||
|
|
||||||
The list of available flags are:
|
The list of available flags are:
|
||||||
|
|
||||||
* `-json` - Displays the schemas in a machine-readble, JSON format.
|
* `-json` - Displays the schemas in a machine-readable, JSON format.
|
||||||
|
|
||||||
Please note that, at this time, the `-json` flag is a _required_ option. In future releases, this command will be extended to allow for additional options.
|
Please note that, at this time, the `-json` flag is a _required_ option. In future releases, this command will be extended to allow for additional options.
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ constraints specified, Terraform will show an error and exit.
|
||||||
|
|
||||||
When [modules](./modules.html) are used, all Terraform
|
When [modules](./modules.html) are used, all Terraform
|
||||||
version requirements specified by the complete module tree must be
|
version requirements specified by the complete module tree must be
|
||||||
satisified. This means that the `required_version` setting can be used
|
satisfied. This means that the `required_version` setting can be used
|
||||||
by a module to require that all consumers of a module also use a specific
|
by a module to require that all consumers of a module also use a specific
|
||||||
version.
|
version.
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ the ordering of the given elements is not preserved.
|
||||||
|
|
||||||
* [`contains`](./contains.html) tests whether a given list or set contains
|
* [`contains`](./contains.html) tests whether a given list or set contains
|
||||||
a given element value.
|
a given element value.
|
||||||
* [`setproduct`](./setproduct.html) computes the _cartesian product_ of multiple
|
* [`setproduct`](./setproduct.html) computes the _Cartesian product_ of multiple
|
||||||
sets.
|
sets.
|
||||||
* [`setunion`](./setunion.html) computes the _union_ of
|
* [`setunion`](./setunion.html) computes the _union_ of
|
||||||
multiple sets.
|
multiple sets.
|
||||||
|
|
|
@ -15,7 +15,7 @@ earlier, see
|
||||||
|
|
||||||
The `setproduct` function finds all of the possible combinations of elements
|
The `setproduct` function finds all of the possible combinations of elements
|
||||||
from all of the given sets by computing the
|
from all of the given sets by computing the
|
||||||
[cartesian product](https://en.wikipedia.org/wiki/Cartesian_product).
|
[Cartesian product](https://en.wikipedia.org/wiki/Cartesian_product).
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
setproduct(sets...)
|
setproduct(sets...)
|
||||||
|
|
|
@ -43,5 +43,5 @@ the ordering of the given elements is not preserved.
|
||||||
a given element value.
|
a given element value.
|
||||||
* [`setintersection`](./setintersection.html) computes the _intersection_ of
|
* [`setintersection`](./setintersection.html) computes the _intersection_ of
|
||||||
multiple sets.
|
multiple sets.
|
||||||
* [`setproduct`](./setproduct.html) computes the _cartesian product_ of multiple
|
* [`setproduct`](./setproduct.html) computes the _Cartesian product_ of multiple
|
||||||
sets.
|
sets.
|
||||||
|
|
|
@ -28,7 +28,7 @@ but in rare cases it can be used in conjunction with
|
||||||
to take the timestamp only on initial creation of the resource.
|
to take the timestamp only on initial creation of the resource.
|
||||||
|
|
||||||
Due to the constantly changing return value, the result of this function cannot
|
Due to the constantly changing return value, the result of this function cannot
|
||||||
be preducted during Terraform's planning phase, and so the timestamp will be
|
be predicted during Terraform's planning phase, and so the timestamp will be
|
||||||
taken only once the plan is being applied.
|
taken only once the plan is being applied.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
|
@ -76,7 +76,7 @@ ede1a974-df7e-5f17-84b9-76208818b2c8
|
||||||
```
|
```
|
||||||
|
|
||||||
When using raw UUID namespaces, consider including a comment alongside the
|
When using raw UUID namespaces, consider including a comment alongside the
|
||||||
expression that indicates which namespace this repressents in a
|
expression that indicates which namespace this represents in a
|
||||||
human-significant manner, such as by reference to the standard that
|
human-significant manner, such as by reference to the standard that
|
||||||
defined it.
|
defined it.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue