Skip to content

Commit

Permalink
Fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
notgull committed Apr 4, 2023
1 parent 15b4ea2 commit a7e74b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/notify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub trait NotificationPrivate {
/// ev.notify(notify);
/// }
///
/// notify(1.additional());
/// notify(&Event::new(), 1.additional());
/// ```
pub trait Notification: NotificationPrivate {}
impl<N: NotificationPrivate + ?Sized> Notification for N {}
Expand Down Expand Up @@ -413,7 +413,7 @@ pub trait IntoNotification: __private::Sealed {
/// # Examples
///
/// ```
/// use event_listener::Event;
/// use event_listener::{Event, prelude::*};
/// use std::sync::atomic::{self, Ordering};
///
/// let event = Event::new();
Expand Down

0 comments on commit a7e74b2

Please sign in to comment.