Skip to content

Commit 9cc9861

Browse files
authored
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
1 parent aef5ca5 commit 9cc9861

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/doc/book/guessing-game.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ numbers. A bare number like above is actually shorthand for `^0.3.0`,
362362
meaning "anything compatible with 0.3.0".
363363
If we wanted to use only `0.3.0` exactly, we could say `rand="=0.3.0"`
364364
(note the two equal signs).
365-
And if we wanted to use the latest version we could use `rand="*"`.
366365
We could also use a range of versions.
367366
[Cargo’s documentation][cargodoc] contains more details.
368367

0 commit comments

Comments
 (0)