mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +00:00
README: Explain that --file-lines ranges are 1-based
This commit is contained in:
parent
66483017f6
commit
e252100cf6
@ -77,8 +77,8 @@ If you want to restrict reformatting to specific sets of lines, you can
|
||||
use the `--file-lines` option. Its argument is a JSON array of objects
|
||||
with `file` and `range` properties, where `file` is a file name, and
|
||||
`range` is an array representing a range of lines like `[7,13]`. Ranges
|
||||
are inclusive of both end points. Specifying an empty array will result in
|
||||
no files being formatted. For example,
|
||||
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 '[
|
||||
|
Loading…
Reference in New Issue
Block a user