Merge pull request #2594 from tvolk131/fix_docs

Fix documentation for open_events()
This commit is contained in:
Héctor Ramón 2024-09-21 00:15:07 +02:00 committed by GitHub
commit 6162850c78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {