summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-11-29 14:57:40 +0700
committerLibravatar GitHub <noreply@github.com>2021-11-29 14:57:40 +0700
commitd9f970ffd5af6dafb5e696ad317d9ea7b997eb4b (patch)
treea86528163bf5830b227cc9c6383102b2543f5c64 /src
parent96c7f9765c716dbe94d25f4961d07bc8e18a02c4 (diff)
parent2f50d114612e0dc5cb23389ade2a21819836d254 (diff)
downloadiced-d9f970ffd5af6dafb5e696ad317d9ea7b997eb4b.tar.gz
iced-d9f970ffd5af6dafb5e696ad317d9ea7b997eb4b.tar.bz2
iced-d9f970ffd5af6dafb5e696ad317d9ea7b997eb4b.zip
Merge pull request #1112 from AndiHofi/on_exit_callback
Application::run returns on native platforms
Diffstat (limited to '')
-rw-r--r--src/application.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/application.rs b/src/application.rs
index af04215e..b722c8a3 100644
--- a/src/application.rs
+++ b/src/application.rs
@@ -188,9 +188,10 @@ 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 [`Application`] exits.
///
- /// It should probably be that last thing you call in your `main` function.
+ /// On the web platform, this method __will NOT return__ unless there is an
+ /// [`Error`] during startup.
///
/// [`Error`]: crate::Error
fn run(settings: Settings<Self::Flags>) -> crate::Result