Skip to content

Commit c0cc003

Browse files
authored
Also mention tilde requirements.
1 parent 50fd163 commit c0cc003

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/src/reference/specifying-dependencies.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ is ignored and should not be used in version requirements.
162162
> [#10599]).
163163
>
164164
> Avoid constraining the upper bound of a version to be anything less than the
165-
> next semver incompatible version (e.g. avoid `">=2.0, <2.4"` or `"2.0.*"`),
165+
> next semver incompatible version
166+
> (e.g. avoid `">=2.0, <2.4"`, `"2.0.*"`, or `~2.0`),
166167
> as other packages in the dependency tree may
167168
> require a newer version, leading to an unresolvable error (see [#9029]).
168169
> Consider whether controlling the version in your [`Cargo.lock`] would be more

0 commit comments

Comments
 (0)