Skip to content

Commit 0f6607b

Browse files
authored
Merge pull request rust-lang#3088 from otavio/fix-misleading-comment
rewrite: adjust comment as it refers to `is_if_else_block`
2 parents 15717be + 6391b7a commit 0f6607b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rewrite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub struct RewriteContext<'a> {
4040
pub inside_macro: RefCell<bool>,
4141
// Force block indent style even if we are using visual indent style.
4242
pub use_block: RefCell<bool>,
43-
// When `format_if_else_cond_comment` is true, unindent the comment on top
43+
// When `is_if_else_block` is true, unindent the comment on top
4444
// of the `else` or `else if`.
4545
pub is_if_else_block: RefCell<bool>,
4646
// When rewriting chain, veto going multi line except the last element

0 commit comments

Comments
 (0)