diff --git a/Contributing.md b/Contributing.md index b986a887c92..a2a3617fd23 100644 --- a/Contributing.md +++ b/Contributing.md @@ -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