Fix example and reference version matching syntax

Address documentation issue raised in #2759
pull/3232/head
Tim H 7 years ago committed by GitHub
parent 16571305bb
commit a3af75f9b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,10 +7,12 @@ This section of the guide covers best practices for `requirements.yaml` files.
Where possible, use version ranges instead of pinning to an exact version. The suggested default is to use a patch-level version match:
```yaml
version: ^1.2.0
version: ~1.2.3
```
This will match version 1.2.0 and any patches to that release (1.2.1, 1.2.999, and so on)
This will match version `1.2.3` and any patches to that release. In other words, `~1.2.3` is equivalent to `>= 1.2.3, < 1.3.0`
For the complete version matching syntax, please see the [semver documentation](https://github.com/Masterminds/semver#checking-version-constraints)
### Repository URLs
@ -42,4 +44,4 @@ tags:
- webaccelerator
```
This allows a user to turn that feature on and off with one tag.
This allows a user to turn that feature on and off with one tag.

Loading…
Cancel
Save