Skip to content

Commit 2f4a40b

Browse files
committed
add a rustfmt detail to CONTRIBUTING.md
1 parent b0d65af commit 2f4a40b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ installed locally, ignore the cross-compile test failures or disable them by
8282
using `CFG_DISABLE_CROSS_TESTS=1 cargo test`. Note that some tests are enabled
8383
only on `nightly` toolchain. If you can, test both toolchains.
8484
* All code changes are expected to comply with the formatting suggested by `rustfmt`.
85-
You can use `rustup component add rustfmt-preview` to install `rustfmt` and use
86-
`cargo fmt` on the changed files to automatically format your code.
85+
You can use `rustup +stable component add rustfmt-preview` to install `rustfmt` and use
86+
`rustfmt +stable --skip-children $FILE` on the changed files to automatically format your code.
8787
* Push your commits to GitHub and create a pull request against Cargo's
8888
`master` branch.
8989

0 commit comments

Comments
 (0)