aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/display/mod.rs
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/src/display/mod.rs
parent500b696ca8ed61c42f5954b10f1294e875d792ae (diff)
downloadr-alacritty-75eef3be9680dbe3300186b06e19eac7f9dfab4b.tar.gz
r-alacritty-75eef3be9680dbe3300186b06e19eac7f9dfab4b.tar.bz2
r-alacritty-75eef3be9680dbe3300186b06e19eac7f9dfab4b.zip
Fix typos
Diffstat (limited to 'alacritty/src/display/mod.rs')
-rw-r--r--alacritty/src/display/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/alacritty/src/display/mod.rs b/alacritty/src/display/mod.rs
index 2b5cc348..efd41c04 100644
--- a/alacritty/src/display/mod.rs
+++ b/alacritty/src/display/mod.rs
@@ -587,7 +587,7 @@ impl Display {
}
// XXX: this function must not call to any `OpenGL` related tasks. Renderer updates are
- // performed in [`Self::process_renderer_update`] right befor drawing.
+ // performed in [`Self::process_renderer_update`] right before drawing.
//
/// Process update events.
pub fn handle_update<T>(
@@ -1378,7 +1378,7 @@ impl Display {
}
}
- /// Requst a new frame for a window on Wayland.
+ /// Request a new frame for a window on Wayland.
fn request_frame(&mut self, scheduler: &mut Scheduler) {
// Mark that we've used a frame.
self.window.has_frame = false;
@@ -1408,7 +1408,7 @@ impl Display {
impl Drop for Display {
fn drop(&mut self) {
// Switch OpenGL context before dropping, otherwise objects (like programs) from other
- // contexts might be deleted during droping renderer.
+ // contexts might be deleted when dropping renderer.
self.make_current();
unsafe {
ManuallyDrop::drop(&mut self.renderer);