docs: typo fixes

Co-Authored-By: Drakulix <github@drakulix.de>
This commit is contained in:
Victor Berger 2018-12-06 14:45:40 +01:00 committed by Victor Brekenfeld
parent a8343edbd7
commit 7dc3d64b6e
3 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ unsafe impl<D: RawDevice + 'static> NativeSurface for GbmSurface<D> {
} }
fn swap_buffers(&self) -> ::std::result::Result<(), SwapBuffersError> { 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. // if this is used by our egl module, which is why this trait is unsafe.
unsafe { self.page_flip() } unsafe { self.page_flip() }
} }

View File

@ -284,7 +284,7 @@ pub struct GbmSurface<D: RawDevice + 'static>(pub(super) Rc<GbmSurfaceInternal<D
impl<D: RawDevice + 'static> GbmSurface<D> { impl<D: RawDevice + 'static> GbmSurface<D> {
/// Flips the underlying buffers. /// 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 /// 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 /// (bad idea performance-wise) or by binding the device to an event-loop by using
/// `device_bind`. /// `device_bind`.

View File

@ -6,7 +6,7 @@ pub trait CursorBackend<'a> {
/// Error the underlying backend throws if operations fail /// Error the underlying backend throws if operations fail
type Error; 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. /// Useful as well for e.g. pointer wrapping.
/// ///
/// Not guaranteed to be supported on every backend. The result usually /// Not guaranteed to be supported on every backend. The result usually