summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Andreas Hofstadler <andi@toringor.at>2021-11-07 14:32:18 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-11-29 14:41:05 +0700
commit08c771fa703f93faf57207a6793cf70cf105de5a (patch)
tree8d3b146046229c9d7675f329de95ebcc0dc9c8cc /src
parentaeec0375f0897b2ef0897c4c54476b2d0db9311a (diff)
downloadiced-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.rs4
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