Fix Button example in iced_native

This commit is contained in:
Héctor Ramón Jiménez 2019-11-22 22:13:54 +01:00
parent d136b7ce64
commit 048909b45d
2 changed files with 5 additions and 4 deletions

View File

@ -4,7 +4,6 @@
//!
//! [`Button`]: struct.Button.html
//! [`State`]: struct.State.html
use crate::{
input::{mouse, ButtonState},
layout, Background, Element, Event, Hasher, Layout, Length, Point,
@ -15,8 +14,11 @@ use std::hash::Hash;
/// A generic widget that produces a message when pressed.
///
/// ```
/// # use iced_native::{button, Button};
///
/// # use iced_native::{button, Text};
/// #
/// # type Button<'a, Message> =
/// # iced_native::Button<'a, Message, iced_native::renderer::Null>;
/// #
/// enum Message {
/// ButtonPressed,
/// }

View File

@ -4,7 +4,6 @@
//!
//! [`Slider`]: struct.Slider.html
//! [`State`]: struct.State.html
use crate::{
input::{mouse, ButtonState},
layout, Element, Event, Hasher, Layout, Length, Point, Rectangle, Size,