Skip to content

Commit 594b464

Browse files
committed
wrote clearer phrasing for config::options::WriteMode::Check
1 parent b0ece6b commit 594b464

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config/options.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ configuration_option_enum! { WriteMode:
183183
Checkstyle,
184184
// Output the changed lines (for internal value only)
185185
Modified,
186-
// Displays how much of the input was processed, but if anything was modified, rustfmt quits
187-
// with exit code 0. This option is intended to be run as part of a CI pipeline.
186+
// Checks if a diff can be generated. If so, rustfmt outputs a diff and quits with exit code 1.
187+
// This option is designed to be run in CI where a non-zero exit signifies non-standard code formatting.
188188
Check,
189189
}
190190

0 commit comments

Comments
 (0)