Skip to content

Commit

Permalink
Docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
JungleTryne committed Mar 3, 2023
1 parent 26823c8 commit 1741f96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions native/src/widget/text_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ where
///
/// It expects:
/// - a placeholder,
/// - the current value, and
/// - a function that produces a message when the [`TextInput`] changes.
/// - the current value
pub fn new(placeholder: &str, value: &str) -> Self {
TextInput {
id: None,
Expand Down Expand Up @@ -164,6 +163,7 @@ where
}

/// Sets the callback which is called when the text gets changed
/// If not specified, the widget will be disabled
pub fn on_change<F>(mut self, callback: F) -> Self
where
F: 'a + Fn(String) -> Message,
Expand Down

0 comments on commit 1741f96

Please sign in to comment.