From 08c771fa703f93faf57207a6793cf70cf105de5a Mon Sep 17 00:00:00 2001 From: Andreas Hofstadler Date: Sun, 7 Nov 2021 14:32:18 +0100 Subject: Allow `Application::run` to return on native platforms --- src/application.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -> crate::Result -- cgit