Skip to content

Commit d2f5d26

Browse files
Rollup merge of rust-lang#37485 - xfix:patch-2, r=steveklabnik
Don't mention "*" dependency version in guessing game example It's a bad practice as far [RFC 1241](https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md) is concerned, and introducing it in early tutorial may as well make it feel legitimate.
2 parents d5a2510 + 9cc9861 commit d2f5d26

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)