Improve documentation of Application::run

This commit is contained in:
Héctor Ramón Jiménez 2021-11-29 14:44:19 +07:00
parent 0648d9d234
commit 2f50d11461
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -188,9 +188,10 @@ pub trait Application: Sized {
/// Runs the [`Application`].
///
/// On native platforms, this method will take control of the current thread
/// until the event loop of the main window exits.
/// until the [`Application`] exits.
///
/// Does never return on the web platform
/// 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