summaryrefslogtreecommitdiffstats
path: root/web/src/widget/text_input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/widget/text_input.rs')
-rw-r--r--web/src/widget/text_input.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/web/src/widget/text_input.rs b/web/src/widget/text_input.rs
index 591fc21d..e8d8ca2f 100644
--- a/web/src/widget/text_input.rs
+++ b/web/src/widget/text_input.rs
@@ -93,11 +93,6 @@ impl<'a, Message> TextInput<'a, Message> {
}
/// Sets the [`Padding`] of the [`TextInput`].
- ///```ignore
- /// TextInput::new(/*...*/).padding(20); // 20px on all sides
- /// TextInput::new(/*...*/).padding([10, 20]); // top/bottom, left/right
- /// TextInput::new(/*...*/).padding([5, 10, 15, 20]); // top, right, bottom, left
- /// ```
pub fn padding<P: Into<Padding>>(mut self, padding: P) -> Self {
self.padding = padding.into();
self