From dd7ea46c2ae6bbf39dfdae6197ab7b57fde17d4f Mon Sep 17 00:00:00 2001 From: hongshaoyang Date: Wed, 26 Jul 2023 14:15:58 +0800 Subject: [PATCH] Update version-constraints.mdx --- website/docs/language/expressions/version-constraints.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docs/language/expressions/version-constraints.mdx b/website/docs/language/expressions/version-constraints.mdx index 52c5665065..a03d0206fa 100644 --- a/website/docs/language/expressions/version-constraints.mdx +++ b/website/docs/language/expressions/version-constraints.mdx @@ -46,7 +46,8 @@ The following operators are valid: - `~>`: Allows only the _rightmost_ version component to increment. For example, to allow new patch releases within a specific minor release, use the full version number: `~> 1.0.4` will allow installation of `1.0.5` and `1.0.10` - but not `1.1.0`. This is usually called the pessimistic constraint operator. + but not `1.1.0`. `~> 1.1` will allow installation of `1.2` and 1.10` but + not `2.0`. This is usually called the pessimistic constraint operator. ## Version Constraint Behavior