From 36af403e6b4968b622975888a22adab36f75b64e Mon Sep 17 00:00:00 2001 From: Richard Date: Sat, 12 Aug 2023 17:05:04 -0500 Subject: [PATCH] improve the --file-lines help (#5846) * improve the file-lines example * fix help order --- src/bin/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/main.rs b/src/bin/main.rs index 2ff67d27e1b..97d31852d63 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -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]}},