From e252100cf67ae2afe8d4d9687dcafe7a4fbb8f72 Mon Sep 17 00:00:00 2001 From: Kamal Marhubi Date: Tue, 31 May 2016 00:42:14 +0200 Subject: [PATCH] README: Explain that --file-lines ranges are 1-based --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4f0714a9997d..5d9f262d659f 100644 --- a/README.md +++ b/README.md @@ -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 '[