improve the --file-lines help (#5846)

* improve the file-lines example

* fix help order
This commit is contained in:
Richard 2023-08-12 17:05:04 -05:00 committed by GitHub
parent a72613be50
commit 36af403e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,7 +422,7 @@ fn print_help_file_lines() {
will result in no files being formatted. For example,
```
rustfmt --file-lines '[
rustfmt src/lib.rs src/foo.rs --file-lines '[
{{\"file\":\"src/lib.rs\",\"range\":[7,13]}},
{{\"file\":\"src/lib.rs\",\"range\":[21,29]}},
{{\"file\":\"src/foo.rs\",\"range\":[10,11]}},