about summary refs log tree commit diff
path: root/src/comment.rs
diff options
context:
space:
mode:
authorNick Cameron <nrc@ncameron.org>2016-09-19 08:49:38 +1200
committerGitHub <noreply@github.com>2016-09-19 08:49:38 +1200
commitfb8a1903cf0ed6b4926ff6f09e0cdba5d85a20d7 (patch)
tree02ffa2b85477c9da927d4275ede6d42212e51a0d /src/comment.rs
parentd0e8322d7f9e53e4b4633166e83520ff2c121b35 (diff)
parent079f39d07fd75e625a56c8a417bdc946cac389a6 (diff)
Merge pull request #1161 from sinkuu/fix550
Fix #550: `if` nested in tuple is indented oddly
Diffstat (limited to 'src/comment.rs')
-rw-r--r--src/comment.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comment.rs b/src/comment.rs
index 5a525f1bb23..4ced667ef78 100644
--- a/src/comment.rs
+++ b/src/comment.rs
@@ -435,10 +435,10 @@ impl<'a> Iterator for UngroupedCommentCodeSlices<'a> {
             None => &self.slice[start_idx..],
         };
         Some((if kind.is_comment() {
-            CodeCharKind::Comment
-        } else {
-            CodeCharKind::Normal
-        },
+                  CodeCharKind::Comment
+              } else {
+                  CodeCharKind::Normal
+              },
               start_idx,
               slice))
     }