about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnthonyMikh <anthony.mikh@yandex.ru>2019-09-25 23:46:33 +0300
committerGitHub <noreply@github.com>2019-09-25 23:46:33 +0300
commit9b447e2f9fb9b0d3366de90b2de72541b195e99d (patch)
tree63d35fe65e41c796000fcdda09b889c12632666f
parentaef169b4e637fe417f05fa50450b90e403023a5f (diff)
downloadrust-9b447e2f9fb9b0d3366de90b2de72541b195e99d.tar.gz
rust-9b447e2f9fb9b0d3366de90b2de72541b195e99d.zip
Unify order of variables in chained comparison
-rw-r--r--src/librustc_errors/emitter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs
index 61bd4899f3c..362e28661d9 100644
--- a/src/librustc_errors/emitter.rs
+++ b/src/librustc_errors/emitter.rs
@@ -125,7 +125,7 @@ impl Margin {
         } else {
             self.computed_right
         };
-        right < line_len && line_len > self.computed_left + self.column_width
+        right < line_len && self.computed_left + self.column_width < line_len
     }
 
     fn compute(&mut self, max_line_len: usize) {