Skip to content

Commit 36af403

Browse files
authored
improve the --file-lines help (rust-lang#5846)
* improve the file-lines example * fix help order
1 parent a72613b commit 36af403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ are 1-based and inclusive of both end points. Specifying an empty array
422422
will result in no files being formatted. For example,
423423
424424
```
425-
rustfmt --file-lines '[
425+
rustfmt src/lib.rs src/foo.rs --file-lines '[
426426
{{\"file\":\"src/lib.rs\",\"range\":[7,13]}},
427427
{{\"file\":\"src/lib.rs\",\"range\":[21,29]}},
428428
{{\"file\":\"src/foo.rs\",\"range\":[10,11]}},

0 commit comments

Comments
 (0)