diff --git a/src/editor/line.rs b/src/editor/line.rs index f0b7d1a..0382287 100644 --- a/src/editor/line.rs +++ b/src/editor/line.rs @@ -172,7 +172,7 @@ impl CodeEditor { advance, window, ); - // Text sits where laid out; rulers and guides on the grid. + // Text where laid out; rulers and guides on grid. let x = |column: usize| advance + measured.x(column); let grid = |column: usize| advance * (column + 1) as f32; let focused = self.focus.is_focused(window); diff --git a/src/editor/measure.rs b/src/editor/measure.rs index ad6837a..94597b6 100644 --- a/src/editor/measure.rs +++ b/src/editor/measure.rs @@ -68,7 +68,7 @@ impl Measured { } } - /// The column whose start lies nearest `x`, line end included. + /// The column starting nearest `x`, line end included. pub fn column(&self, x: Pixels) -> usize { let starts = self.layout.runs.iter().flat_map(|run| { run.glyphs