subtle documentation ambiguity #12112
Labels
A-documenting-cargo-itself
Area: Cargo's documentation
A-semver
Area: semver specifications, version matching, etc.
C-bug
Category: bug
E-easy
Experience: Easy
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Problem
The Cargo Book says:
This phrasing has an unfortunate interpretation for Rust newbies, who may take the statement to mean that caret means the exact version identifier.
A very careful reading reveals that caret is merely the default semantic, but is not exactly equivalent to any fixed version. Some users may get tripped up by this ambiguity.
Possible Solution(s)
We can help the reader to disambiguate Cargo syntax and semantics. For example, adjust the section to say something like:
The text was updated successfully, but these errors were encountered: