diff --git a/src/paint/border_path_iter.rs b/src/paint/border_path_iter.rs index 26d039ab1..2676a37d1 100644 --- a/src/paint/border_path_iter.rs +++ b/src/paint/border_path_iter.rs @@ -94,7 +94,7 @@ impl<'a> Iterator for BorderPathIter<'a> { fn next(&mut self) -> Option { assert!( - self.total_len >= 0.0, + self.total_len > 0.0, "Total length must be positive. Total_len: {}", self.total_len ); diff --git a/src/views/editor/visual_line.rs b/src/views/editor/visual_line.rs index 76fc27d86..5064ec11f 100644 --- a/src/views/editor/visual_line.rs +++ b/src/views/editor/visual_line.rs @@ -875,7 +875,7 @@ impl Lines { debug_assert_eq!( line_index, 0, - "Line index was zero. This likely indicates keeping an rvline past when it was valid." + "Line index was not zero. This likely indicates keeping an rvline past when it was valid." ); rope_text.offset_of_line(line)