From cbc311ed9e33db9eb65f3b91fe53eaca94b13d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 27 Nov 2025 04:13:51 +0100 Subject: [PATCH] Fine-tune `tooltip` documentation --- widget/src/tooltip.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/widget/src/tooltip.rs b/widget/src/tooltip.rs index db335bbb..b3873e36 100644 --- a/widget/src/tooltip.rs +++ b/widget/src/tooltip.rs @@ -1,7 +1,7 @@ //! Tooltips display a hint of information over some element when hovered. //! -//! By default, the tooltip is only displayed after a short duration. (This -//! delay can be customized.) +//! By default, the tooltip is only displayed when hovered for 2 seconds. +//! This delay can be adjusted with [`Tooltip::delay`]. //! //! # Example //! ```no_run @@ -123,8 +123,9 @@ where self } - /// Sets the delay before the [`Tooltip`] is shown. Set to 0 milliseconds - /// to be shown immediately. + /// Sets the delay before the [`Tooltip`] is shown. + /// + /// Set to [`Duration::ZERO`] to be shown immediately. pub fn delay(mut self, delay: Duration) -> Self { self.delay = delay; self