Skip to content

Commit a4bd03c

Browse files
authored
Clarify multiple version requirement behavior (#15979)
Clarify handling of multiple version requirements of disjoint regions ### What does this PR try to resolve? Resolves a gap in the existing documentation around the dependency specification for multiple version requirements. ### How to test and review this PR? As only an update to the cargo book, review should be straightforward
2 parents c99149a + 43fcd73 commit a4bd03c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ Here are some examples of comparison requirements:
111111

112112
As shown in the examples above, multiple version requirements can be
113113
separated with a comma, e.g., `>= 1.2, < 1.5`.
114+
All requirements must be satisfied,
115+
so non-overlapping requirements like `<1.2, ^1.2.2` result in no matching versions.
114116

115117
### Pre-releases
116118

0 commit comments

Comments
 (0)