From af6d84a7f85c3804bcf60d066f26e33070a17d1c Mon Sep 17 00:00:00 2001 From: Ujp8LfXBJ6wCPR Date: Sun, 9 Jun 2024 10:50:22 +0000 Subject: Fix typos (#429) * Fix typos reported by "typos" crate https://github.com/crate-ci/typos * Ignore typo datas -> data See https://github.com/crate-ci/typos?tab=readme-ov-file#false-positives for more configureability. --------- Co-authored-by: Carl Hjerpe Co-authored-by: Ivan Molodetskikh --- src/layout/workspace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/layout') diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index 1947475a..fadbf00c 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -3355,7 +3355,7 @@ fn compute_new_view_offset( return -(new_col_x - cur_x); } - // Otherwise, prefer the aligment that results in less motion from the current position. + // Otherwise, prefer the alignment that results in less motion from the current position. let dist_to_left = cur_x.abs_diff(new_x); let dist_to_right = (cur_x + view_width).abs_diff(new_right_x); if dist_to_left <= dist_to_right { -- cgit