Skip to content

Commit a7e74b2

Browse files
committed
Fix doctests
1 parent 15b4ea2 commit a7e74b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/notify.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub trait NotificationPrivate {
4949
/// ev.notify(notify);
5050
/// }
5151
///
52-
/// notify(1.additional());
52+
/// notify(&Event::new(), 1.additional());
5353
/// ```
5454
pub trait Notification: NotificationPrivate {}
5555
impl<N: NotificationPrivate + ?Sized> Notification for N {}
@@ -413,7 +413,7 @@ pub trait IntoNotification: __private::Sealed {
413413
/// # Examples
414414
///
415415
/// ```
416-
/// use event_listener::Event;
416+
/// use event_listener::{Event, prelude::*};
417417
/// use std::sync::atomic::{self, Ordering};
418418
///
419419
/// let event = Event::new();

0 commit comments

Comments
 (0)