Skip to content

Commit

Permalink
improve the --file-lines help (#5846)
Browse files Browse the repository at this point in the history
* improve the file-lines example

* fix help order
  • Loading branch information
richardmon authored Aug 12, 2023
1 parent a72613b commit 36af403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ are 1-based and inclusive of both end points. Specifying an empty array
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]}},
Expand Down

0 comments on commit 36af403

Please sign in to comment.