From 7dc3d64b6e064e87e0566f0db7930e2b274e0876 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Thu, 6 Dec 2018 14:45:40 +0100 Subject: [PATCH] docs: typo fixes Co-Authored-By: Drakulix --- src/backend/drm/gbm/egl.rs | 2 +- src/backend/drm/gbm/surface.rs | 2 +- src/backend/graphics/cursor.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/drm/gbm/egl.rs b/src/backend/drm/gbm/egl.rs index 8dff15b..5977870 100644 --- a/src/backend/drm/gbm/egl.rs +++ b/src/backend/drm/gbm/egl.rs @@ -88,7 +88,7 @@ unsafe impl NativeSurface for GbmSurface { } fn swap_buffers(&self) -> ::std::result::Result<(), SwapBuffersError> { - // this is save since `eglSwapBuffers` will have been called exactly once + // this is safe since `eglSwapBuffers` will have been called exactly once // if this is used by our egl module, which is why this trait is unsafe. unsafe { self.page_flip() } } diff --git a/src/backend/drm/gbm/surface.rs b/src/backend/drm/gbm/surface.rs index b60b8a9..96a98eb 100644 --- a/src/backend/drm/gbm/surface.rs +++ b/src/backend/drm/gbm/surface.rs @@ -284,7 +284,7 @@ pub struct GbmSurface(pub(super) Rc GbmSurface { /// Flips the underlying buffers. /// - /// The surface will reported being already flipped until the matching events + /// The surface will report being already flipped until the matching event /// was processed either by calling `GbmDevice::process_events` manually after the flip /// (bad idea performance-wise) or by binding the device to an event-loop by using /// `device_bind`. diff --git a/src/backend/graphics/cursor.rs b/src/backend/graphics/cursor.rs index e08c5cc..7140bd5 100644 --- a/src/backend/graphics/cursor.rs +++ b/src/backend/graphics/cursor.rs @@ -6,7 +6,7 @@ pub trait CursorBackend<'a> { /// Error the underlying backend throws if operations fail type Error; - /// Sets the cursor position and therefor updates the drawn cursors position. + /// Sets the cursor position and therefore updates the drawn cursors position. /// Useful as well for e.g. pointer wrapping. /// /// Not guaranteed to be supported on every backend. The result usually