Skip to content

Commit 9b447e2

Browse files
authored
Unify order of variables in chained comparison
1 parent aef169b commit 9b447e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_errors/emitter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl Margin {
125125
} else {
126126
self.computed_right
127127
};
128-
right < line_len && line_len > self.computed_left + self.column_width
128+
right < line_len && self.computed_left + self.column_width < line_len
129129
}
130130

131131
fn compute(&mut self, max_line_len: usize) {

0 commit comments

Comments
 (0)