@@ -358,11 +358,10 @@ rand="0.3.0"
358
358
The ` [dependencies] ` section of ` Cargo.toml ` is like the ` [package] ` section:
359
359
everything that follows it is part of it, until the next section starts.
360
360
Cargo uses the dependencies section to know what dependencies on external
361
- crates you have, and what versions you require. In this case, we’ve used ` * ` ,
362
- which means that we’ll use the latest version of ` rand ` . Cargo understands
363
- [ Semantic Versioning] [ semver ] , which is a standard for writing version
364
- numbers. If we wanted a specific version or range of versions, we could be
365
- more specific here. [ Cargo’s documentation] [ cargodoc ] contains more details.
361
+ crates you have, and what versions you require. In this case, we’ve used version ` 0.3.0 ` .
362
+ Cargo understands [ Semantic Versioning] [ semver ] , which is a standard for writing version
363
+ numbers. If we wanted to use the latest version we could use ` * ` or we could use a range
364
+ of versions. [ Cargo’s documentation] [ cargodoc ] contains more details.
366
365
367
366
[ semver ] : http://semver.org
368
367
[ cargodoc ] : http://doc.crates.io/crates-io.html
@@ -410,7 +409,7 @@ $ cargo build
410
409
Compiling guessing_game v0.1.0 (file:///home/you/projects/guessing_game)
411
410
```
412
411
413
- So, we told Cargo we wanted any version of ` rand ` , and so it fetched the latest
412
+ So, we told Cargo we wanted any ` 0.3.x ` version of ` rand ` , and so it fetched the latest
414
413
version at the time this was written, ` v0.3.8 ` . But what happens when next
415
414
week, version ` v0.3.9 ` comes out, with an important bugfix? While getting
416
415
bugfixes is important, what if ` 0.3.9 ` contains a regression that breaks our
0 commit comments