Don't mention "*" dependency version in guessing game example

It's a bad practice as far [RFC 1241] is concerned, and introducing it
in early tutorial may as well make it feel legitimate.

[RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
This commit is contained in:
Konrad Borowski 2016-10-30 15:24:13 +01:00 committed by GitHub
parent aef5ca5590
commit 9cc98612d7

View File

@ -362,7 +362,6 @@ numbers. A bare number like above is actually shorthand for `^0.3.0`,
meaning "anything compatible with 0.3.0".
If we wanted to use only `0.3.0` exactly, we could say `rand="=0.3.0"`
(note the two equal signs).
And if we wanted to use the latest version we could use `rand="*"`.
We could also use a range of versions.
[Cargos documentation][cargodoc] contains more details.