fix comment typo

This commit is contained in:
eiei114 2022-07-23 02:19:28 +09:00
parent 1008682d28
commit 277796ab66
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ fn test_end_boundary_by_spaces() {
let mut cursor = WordCursor::new(buffer.text(), 0);
assert_eq!(cursor.end_boundary(), Some(4));
assert_eq!(cursor.end_boundary(), Some(9));
// This end of word bounary is expected to go 1 beyond the buffer end.
// This end of word boundary is expected to go 1 beyond the buffer end.
assert_eq!(cursor.end_boundary(), Some(buffer.len()));
assert_eq!(cursor.end_boundary(), None);
}

View File

@ -225,7 +225,7 @@ pub fn direction(mut self, direction: SplitDirection) -> Self {
}
/// Set the panel kind on the split, so that split can
/// determine the split direction based on the postion
/// determine the split direction based on the position
/// of the panel
pub fn panel(mut self, panel: PanelKind) -> Self {
self.panel = Some(panel);

View File

@ -2022,7 +2022,7 @@ fn paint(&mut self, ctx: &mut PaintCtx, data: &LapceTabData, env: &Env) {
/// The tab header of window tabs where you can click to focus and
/// drag to re order them
///
/// Each window tab hosts a sperate workspace, which gives you an alternative
/// Each window tab hosts a separate workspace, which gives you an alternative
/// way to work with multiple workspaces.
pub struct LapceTabHeader {
pub drag_start: Option<(Point, Point)>,