We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0ece6b commit 594b464Copy full SHA for 594b464
src/config/options.rs
@@ -183,8 +183,8 @@ configuration_option_enum! { WriteMode:
183
Checkstyle,
184
// Output the changed lines (for internal value only)
185
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.
+ // Checks if a diff can be generated. If so, rustfmt outputs a diff and quits with exit code 1.
+ // This option is designed to be run in CI where a non-zero exit signifies non-standard code formatting.
188
Check,
189
}
190
0 commit comments