Skip to content

Commit

Permalink
Merge pull request #2594 from tvolk131/fix_docs
Browse files Browse the repository at this point in the history
Fix documentation for open_events()
  • Loading branch information
hecrj authored Sep 20, 2024
2 parents ca93c41 + e9aa276 commit 6162850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pub fn events() -> Subscription<(Id, Event)> {
})
}

/// Subscribes to all [`Event::Closed`] occurrences in the running application.
/// Subscribes to all [`Event::Opened`] occurrences in the running application.
pub fn open_events() -> Subscription<Id> {
event::listen_with(|event, _status, id| {
if let crate::core::Event::Window(Event::Opened { .. }) = event {
Expand Down

0 comments on commit 6162850

Please sign in to comment.