We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15b4ea2 commit a7e74b2Copy full SHA for a7e74b2
src/notify.rs
@@ -49,7 +49,7 @@ pub trait NotificationPrivate {
49
/// ev.notify(notify);
50
/// }
51
///
52
-/// notify(1.additional());
+/// notify(&Event::new(), 1.additional());
53
/// ```
54
pub trait Notification: NotificationPrivate {}
55
impl<N: NotificationPrivate + ?Sized> Notification for N {}
@@ -413,7 +413,7 @@ pub trait IntoNotification: __private::Sealed {
413
/// # Examples
414
415
416
- /// use event_listener::Event;
+ /// use event_listener::{Event, prelude::*};
417
/// use std::sync::atomic::{self, Ordering};
418
419
/// let event = Event::new();
0 commit comments