diff options
author | 2021-11-07 14:32:18 +0100 | |
---|---|---|
committer | 2021-11-29 14:41:05 +0700 | |
commit | 08c771fa703f93faf57207a6793cf70cf105de5a (patch) | |
tree | 8d3b146046229c9d7675f329de95ebcc0dc9c8cc /src | |
parent | aeec0375f0897b2ef0897c4c54476b2d0db9311a (diff) | |
download | iced-08c771fa703f93faf57207a6793cf70cf105de5a.tar.gz iced-08c771fa703f93faf57207a6793cf70cf105de5a.tar.bz2 iced-08c771fa703f93faf57207a6793cf70cf105de5a.zip |
Allow `Application::run` to return on native platforms
Diffstat (limited to 'src')
-rw-r--r-- | src/application.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/application.rs b/src/application.rs index af04215e..5728dc0b 100644 --- a/src/application.rs +++ b/src/application.rs @@ -188,9 +188,9 @@ pub trait Application: Sized { /// Runs the [`Application`]. /// /// On native platforms, this method will take control of the current thread - /// and __will NOT return__ unless there is an [`Error`] during startup. + /// until the event loop of the main window exits. /// - /// It should probably be that last thing you call in your `main` function. + /// Does never return on the web platform /// /// [`Error`]: crate::Error fn run(settings: Settings<Self::Flags>) -> crate::Result |