rust-lang / book

The Rust Programming Language

Home Page:https://doc.rust-lang.org/book/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spurious sentence in book text

StefanSalewski opened this issue · comments

The sentence is:

Otherwise, by default, Cargo will only look for versions greater than 0.8.5 and less than 0.9.0.

As discussed in https://users.rust-lang.org/t/cargo-explanation-confusing-in-official-rust-book/102764/2 it would be a good idea to just remove it.

The sentence here is mostly just very far away from the context which makes it make sense (a dozen paragraphs earlier!), but you’re right that it is also slightly confused! It should probably be rephrased, rather than dropped. Instead of “Otherwise, by default, …” we could have something like “With rand = "0.8.5" in Cargo.toml, …” and the rest of the sentence works.