Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions src/appendix-04-useful-development-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,9 @@ style to use when writing Rust: everyone formats their code using the tool.
Rust installations include rustfmt by default, so you should already have the
programs `rustfmt` and `cargo-fmt` on your system. These two commands are
analogous to `rustc` and `cargo` in that `rustfmt` allows finer-grained control
and `cargo-fmt` understands conventions of a project that uses Cargo. To format
any Cargo project, enter the following:
and `cargo-fmt` understands conventions of a project that uses Cargo.

```sh
$ cargo fmt
```

Running this command reformats all the Rust code in the current crate. This
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should only change the code style, not the code semantics.

This command gives you `rustfmt` and `cargo-fmt`, similar to how Rust gives you
both `rustc` and `cargo`. To format any Cargo project, enter the following:
To format any Cargo project, enter the following:

```console
$ cargo fmt
Expand Down