Skip to content

Commit 8f92d1b

Browse files
authored
doc: fix instruction about running Rustfmt from source code
`cargo-fmt` uses `rustfmt` from `PATH`, so `cargo run --bin cargo-fmt` still uses installed `rustfmt` instead of built one.
1 parent d698bf4 commit 8f92d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ hacking on the rustfmt codebase. It's strongly discouraged to install a version
9898
of rustfmt from source. Instead, run it using `cargo run`, and `--manifest-path`.
9999

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

104104
### Version-gate formatting changes

0 commit comments

Comments
 (0)