From 4fd52af68281eb94c75b631f3adf6ffb50c0dab4 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Tue, 26 Jul 2022 16:02:09 +0300 Subject: [PATCH] Fix type hint reference for xlib hook --- src/platform/unix.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/platform/unix.rs b/src/platform/unix.rs index 591f038f..60a40a0f 100644 --- a/src/platform/unix.rs +++ b/src/platform/unix.rs @@ -35,9 +35,11 @@ pub use crate::platform_impl::{x11::util::WindowType as XWindowType, XNotSupport #[cfg(feature = "wayland")] pub use crate::window::Theme; -/// The first argument in the provided hook will be the pointer to XDisplay -/// and the second one the pointer to XError. The return `bool` is an indicator -/// whether error was handled by the callback. +/// The first argument in the provided hook will be the pointer to `XDisplay` +/// and the second one the pointer to [`XErrorEvent`]. The returned `bool` is an +/// indicator whether the error was handled by the callback. +/// +/// [`XErrorEvent`]: https://linux.die.net/man/3/xerrorevent #[cfg(feature = "x11")] pub type XlibErrorHook = Box bool + Send + Sync>;