Skip to content

Duplicated sentence in 7.1 - Packages and Crates #3994

@fmbarina

Description

@fmbarina
  • I have searched open and closed issues and pull requests for duplicates, using these search terms:
    • 7.1
    • A crate can come in one of two forms: a binary crate or a library crate.
  • I have checked the latest main branch to see if this has already been fixed, in this file:

URL to the section(s) of the book with this problem:
https://doc.rust-lang.org/stable/book/ch07-01-packages-and-crates.html

Description of the problem:

A few months back, some print changes were backported in 98165c4. I'm unsure if it was on purpose or not, so feel free to close this issue if that's the case, but this resulted in one specific sentence being duplicated/repeated very close to the original.

3rd paragraph:

A crate can come in one of two forms: a binary crate or a library crate. Binary crates are programs you can compile to an executable ...

7th paragraph

A crate can come in one of two forms: a binary crate or a library crate. A package can contain as many binary crates as you like, but at most only one library crate ...

Reading the same sentence again so quickly feels jarring. I actually thought I was on the wrong paragraph for a moment.

Suggested fix:
Remove or rephrase one of these sentences. Maybe the latter?

If this is indeed a mistake and the fix is as simple as removing it, may I open a PR?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions