Skip to content

Commit

Permalink
doc: fix instruction about running Rustfmt from source code
Browse files Browse the repository at this point in the history
`cargo-fmt` uses `rustfmt` from `PATH`, so `cargo run --bin cargo-fmt` still uses installed `rustfmt` instead of built one.
  • Loading branch information
xxchan committed Jul 19, 2023
1 parent b944a32 commit a050bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ hacking on the rustfmt codebase. It's strongly discouraged to install a version
of rustfmt from source. Instead, run it using `cargo run`, and `--manifest-path`.

```
cargo run --bin cargo-fmt -- --manifest-path path/to/project/you/want2test/Cargo.toml
RUSTFMT="./target/debug/rustfmt" cargo run --bin cargo-fmt -- --manifest-path path/to/project/you/want2test/Cargo.toml
```

### Version-gate formatting changes
Expand Down

0 comments on commit a050bdc

Please sign in to comment.