diff options
author | 2019-09-04 11:09:57 +0200 | |
---|---|---|
committer | 2019-09-04 11:09:57 +0200 | |
commit | c583a2174d28878a6b1a31288e80b96fac62e799 (patch) | |
tree | 36c80d9a0565980d6bbee62c548c8db142555ba2 /src/widget/button.rs | |
parent | 2c35103035e47485f2fb049f86b3c00feb4b99d2 (diff) | |
download | iced-c583a2174d28878a6b1a31288e80b96fac62e799.tar.gz iced-c583a2174d28878a6b1a31288e80b96fac62e799.tar.bz2 iced-c583a2174d28878a6b1a31288e80b96fac62e799.zip |
Improve tour example
Diffstat (limited to 'src/widget/button.rs')
-rw-r--r-- | src/widget/button.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget/button.rs b/src/widget/button.rs index 14fd3852..abcdbfeb 100644 --- a/src/widget/button.rs +++ b/src/widget/button.rs @@ -83,7 +83,7 @@ impl<'a, Message> Button<'a, Message> { /// Sets the width of the [`Button`] in pixels. /// /// [`Button`]: struct.Button.html - pub fn width(mut self, width: u32) -> Self { + pub fn width(mut self, width: u16) -> Self { self.style = self.style.width(width); self } |