From ab3947a8a1694422d3c3454ee15307e5790e1e08 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Sat, 15 Jul 2023 13:09:46 -0700 Subject: [PATCH] Fix doctests --- glutin-winit/src/window.rs | 2 +- glutin/src/config.rs | 4 ++-- glutin/src/context.rs | 4 ++-- glutin/src/display.rs | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/glutin-winit/src/window.rs b/glutin-winit/src/window.rs index beae7a3957..aa4eff388b 100644 --- a/glutin-winit/src/window.rs +++ b/glutin-winit/src/window.rs @@ -36,7 +36,7 @@ pub trait GlWindow: HasWindowHandle + Sized { /// use glutin_winit::GlWindow; /// # use glutin::surface::{Surface, WindowSurface}; /// # let winit_window: winit::window::Window = unimplemented!(); - /// # let (gl_surface, gl_context): (Surface, _) = unimplemented!(); + /// # let (gl_surface, gl_context): (Surface>, _) = unimplemented!(); /// /// winit_window.resize_surface(&gl_surface, &gl_context); /// ``` diff --git a/glutin/src/config.rs b/glutin/src/config.rs index 5966454d2a..277b71df37 100644 --- a/glutin/src/config.rs +++ b/glutin/src/config.rs @@ -488,8 +488,8 @@ pub enum ColorBufferType { /// ```no_run /// fn test_send() {} /// fn test_sync() {} -/// test_send::(); -/// test_sync::(); +/// test_send::>(); +/// test_sync::>(); /// ``` /// /// [`Surface`]: crate::surface::Surface diff --git a/glutin/src/context.rs b/glutin/src/context.rs index 7ba035609f..41cb021ff8 100644 --- a/glutin/src/context.rs +++ b/glutin/src/context.rs @@ -355,12 +355,12 @@ pub enum ReleaseBehavior { /// /// ```no_run /// fn test_send() {} -/// test_send::(); +/// test_send::>(); /// ``` /// However it's not `Sync`. /// ```compile_fail /// fn test_sync() {} -/// test_sync::(); +/// test_sync::>(); /// ``` #[derive(Debug)] pub enum NotCurrentContext { diff --git a/glutin/src/display.rs b/glutin/src/display.rs index efc41d1974..96c73ff469 100644 --- a/glutin/src/display.rs +++ b/glutin/src/display.rs @@ -151,8 +151,8 @@ pub trait AsRawDisplay { /// ```no_run /// fn test_send() {} /// fn test_sync() {} -/// test_send::(); -/// test_sync::(); +/// test_send::>(); +/// test_sync::>(); /// ``` #[derive(Debug)] pub enum Display {