chore: fix docs typos

This commit is contained in:
Amr Bashir 2023-07-18 05:01:32 +03:00
parent 6a3f2ba7e7
commit 460e88d279
No known key found for this signature in database
GPG key ID: BBD7A47A2003FF33

View file

@ -26,7 +26,7 @@ impl<'a> SubmenuBuilder<'a> {
Default::default() Default::default()
} }
/// Set the text for this menu item. /// Set the text for this submenu.
/// ///
/// See [`Submenu::set_text`] for more info. /// See [`Submenu::set_text`] for more info.
pub fn text<S: Into<String>>(mut self, text: S) -> Self { pub fn text<S: Into<String>>(mut self, text: S) -> Self {
@ -34,7 +34,7 @@ impl<'a> SubmenuBuilder<'a> {
self self
} }
/// Enable or disable this menu item. /// Enable or disable this submenu.
pub fn enabled(mut self, enabled: bool) -> Self { pub fn enabled(mut self, enabled: bool) -> Self {
self.enabled = enabled; self.enabled = enabled;
self self