Clarify chain nature of run function

This commit is contained in:
Héctor Ramón Jiménez 2024-03-17 14:36:42 +01:00
parent 8e1d0b51f1
commit a034e40f7c
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -343,6 +343,10 @@ pub type Result = std::result::Result<(), Error>;
/// Runs a basic iced application with default [`Settings`] given its title,
/// update, and view logic.
///
/// This is equivalent to chaining [`program`] with [`Program::run`].
///
/// [`Program::run`]: application::Program::run
///
/// # Example
/// ```no_run
/// use iced::widget::{button, column, text, Column};