Clarify how the ~> version constraint operator works (#31298)

* Clarify how the ~> version contraint operator works

* add comma, clarify the actor

* verbiage tweak

* language cleanup from PR review

Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>

* fix line length

Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
This commit is contained in:
Alan Szlosek Jr 2022-06-27 11:13:14 -04:00 committed by GitHub
parent 126e493818
commit ec4935ba5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,9 @@ A module intended to be used as the root of a configuration — that is, as the
directory where you'd run `terraform apply` — should also specify the
_maximum_ provider version it is intended to work with, to avoid accidental
upgrades to incompatible new versions. The `~>` operator is a convenient
shorthand for allowing only patch releases within a specific minor release:
shorthand for allowing the rightmost component of a version to increment. The
following example uses the operator to allow only patch releases within a
specific minor release:
```hcl
terraform {