rewrite: adjust comment as it refers to is_if_else_block

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2018-10-11 10:21:15 -03:00
parent 3c9ec96094
commit 6391b7ab35

View File

@ -40,7 +40,7 @@ pub struct RewriteContext<'a> {
pub inside_macro: RefCell<bool>,
// Force block indent style even if we are using visual indent style.
pub use_block: RefCell<bool>,
// When `format_if_else_cond_comment` is true, unindent the comment on top
// When `is_if_else_block` is true, unindent the comment on top
// of the `else` or `else if`.
pub is_if_else_block: RefCell<bool>,
// When rewriting chain, veto going multi line except the last element