docs: improve Builder::run docs (#13058)

Otherwise people might use it and not realize
that `App::run` also takes the callback argument,
which could be useful for some.
This commit is contained in:
WofWca
2025-03-23 17:07:33 +04:00
committed by GitHub
parent dea8bbf6cd
commit be31675fbc

View File

@@ -2227,7 +2227,10 @@ tauri::Builder::default()
Ok(app)
}
/// Runs the configured Tauri application.
/// Builds the configured application and runs it.
///
/// This is a shorthand for [`Self::build`] followed by [`App::run`].
/// For more flexibility, consider using those functions manually.
pub fn run(self, context: Context<R>) -> crate::Result<()> {
self.build(context)?.run(|_, _| {});
Ok(())