From 4ff32e7dcef84b1f800b78b561475bf9a01206da Mon Sep 17 00:00:00 2001 From: Hector Candelaria Date: Wed, 21 Aug 2024 21:28:52 -0400 Subject: [PATCH] Docs: Correct default value for `silent` field - Updated comments to reflect that the default value for `silent` is `null`, not `false`. --- src/use_web_notification.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/use_web_notification.rs b/src/use_web_notification.rs index d8dbd38..f34c9cd 100644 --- a/src/use_web_notification.rs +++ b/src/use_web_notification.rs @@ -276,7 +276,7 @@ pub struct UseWebNotificationOptions { renotify: bool, /// A boolean value specifying whether the notification should be silent, regardless of the device settings. - /// The default is `false`, which means the notification is not silent. If `true`, then the notification will be silent. + /// The default is `null`, which means the notification is not silent. If `true`, then the notification will be silent. #[builder(into)] silent: Option, @@ -411,7 +411,7 @@ pub struct ShowOptions { renotify: Option, /// A boolean value specifying whether the notification should be silent, regardless of the device settings. - /// The default is `false`, which means the notification is not silent. If `true`, then the notification will be silent. + /// The default is `null`, which means the notification is not silent. If `true`, then the notification will be silent. #[builder(into)] silent: Option,