Write documentation for menu method in Application

This commit is contained in:
Héctor Ramón Jiménez 2021-07-19 21:05:16 +07:00
parent a2f49a74d0
commit c8ac77e4e9
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 6 additions and 2 deletions

View file

@ -100,7 +100,9 @@ pub trait Application: Program<Clipboard = Clipboard> {
false
}
/// TODO
/// Returns the current system [`Menu`] of the [`Application`].
///
/// By default, it returns an empty [`Menu`].
fn menu(&self) -> Menu<Self::Message> {
Menu::new()
}