Improve consistency of on_input documentation

This commit is contained in:
Héctor Ramón Jiménez 2023-04-12 04:21:58 +02:00
parent 7e69cb4b18
commit 70e4af46aa
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -113,8 +113,10 @@ where
self self
} }
/// Sets the callback which is called when the text gets changed /// Sets the message that should be produced when some text is typed into
/// If not specified, the widget will be disabled /// the [`TextInput`].
///
/// If this method is not called, the [`TextInput`] will be disabled.
pub fn on_input<F>(mut self, callback: F) -> Self pub fn on_input<F>(mut self, callback: F) -> Self
where where
F: 'a + Fn(String) -> Message, F: 'a + Fn(String) -> Message,