diff options
| author | Ujp8LfXBJ6wCPR <github@lillecarl.com> | 2024-06-09 10:50:22 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-09 10:50:22 +0000 |
| commit | af6d84a7f85c3804bcf60d066f26e33070a17d1c (patch) | |
| tree | f166d19a1c45290b1e5b004fed4fecfeb2429525 /src/layout | |
| parent | f203c8729a8535f6a317df5a35dc01306be2e45c (diff) | |
| download | niri-af6d84a7f85c3804bcf60d066f26e33070a17d1c.tar.gz niri-af6d84a7f85c3804bcf60d066f26e33070a17d1c.tar.bz2 niri-af6d84a7f85c3804bcf60d066f26e33070a17d1c.zip | |
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 <git@hjerpe.xyz>
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/workspace.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
