diff options
author | 2023-04-12 04:21:58 +0200 | |
---|---|---|
committer | 2023-04-12 04:21:58 +0200 | |
commit | 70e4af46aaa9f0750bad2b8b6ed676dd841d6401 (patch) | |
tree | 3479c859fbd7c18ac83ad6d0d551d74108c6af74 /native/src | |
parent | 7e69cb4b18cde29eceb57e3712c0630d279e7984 (diff) | |
download | iced-70e4af46aaa9f0750bad2b8b6ed676dd841d6401.tar.gz iced-70e4af46aaa9f0750bad2b8b6ed676dd841d6401.tar.bz2 iced-70e4af46aaa9f0750bad2b8b6ed676dd841d6401.zip |
Improve consistency of `on_input` documentation
Diffstat (limited to 'native/src')
-rw-r--r-- | native/src/widget/text_input.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index 4c10f5bb..63751b4d 100644 --- a/native/src/widget/text_input.rs +++ b/native/src/widget/text_input.rs @@ -113,8 +113,10 @@ where self } - /// Sets the callback which is called when the text gets changed - /// If not specified, the widget will be disabled + /// Sets the message that should be produced when some text is typed into + /// the [`TextInput`]. + /// + /// If this method is not called, the [`TextInput`] will be disabled. pub fn on_input<F>(mut self, callback: F) -> Self where F: 'a + Fn(String) -> Message, |