summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/grid
diff options
context:
space:
mode:
authorPavel Roskin <1317472+proski@users.noreply.github.com>2023-10-25 16:20:58 -0700
committerGitHub <noreply@github.com>2023-10-25 23:20:58 +0000
commit75eef3be9680dbe3300186b06e19eac7f9dfab4b (patch)
treee59127474f8bdaae5be26dc53d25c3c9ed86d379 /alacritty_terminal/src/grid
parent500b696ca8ed61c42f5954b10f1294e875d792ae (diff)
downloadalacritty-75eef3be9680dbe3300186b06e19eac7f9dfab4b.tar.gz
alacritty-75eef3be9680dbe3300186b06e19eac7f9dfab4b.zip
Fix typos
Diffstat (limited to 'alacritty_terminal/src/grid')
-rw-r--r--alacritty_terminal/src/grid/mod.rs4
-rw-r--r--alacritty_terminal/src/grid/storage.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/alacritty_terminal/src/grid/mod.rs b/alacritty_terminal/src/grid/mod.rs
index b42c5075..232201ec 100644
--- a/alacritty_terminal/src/grid/mod.rs
+++ b/alacritty_terminal/src/grid/mod.rs
@@ -568,12 +568,12 @@ pub struct GridIterator<'a, T> {
}
impl<'a, T> GridIterator<'a, T> {
- /// Current iteratior position.
+ /// Current iterator position.
pub fn point(&self) -> Point {
self.point
}
- /// Cell at the current iteratior position.
+ /// Cell at the current iterator position.
pub fn cell(&self) -> &'a T {
&self.grid[self.point]
}
diff --git a/alacritty_terminal/src/grid/storage.rs b/alacritty_terminal/src/grid/storage.rs
index e444d9c3..8e270d2d 100644
--- a/alacritty_terminal/src/grid/storage.rs
+++ b/alacritty_terminal/src/grid/storage.rs
@@ -80,10 +80,10 @@ impl<T> Storage<T> {
T: Clone + Default,
{
// Number of lines the buffer needs to grow.
- let growage = next - self.visible_lines;
+ let additional_lines = next - self.visible_lines;
let columns = self[Line(0)].len();
- self.initialize(growage, columns);
+ self.initialize(additional_lines, columns);
// Update visible lines.
self.visible_lines = next;