Fix Button example in iced_native
This commit is contained in:
parent
d136b7ce64
commit
048909b45d
2 changed files with 5 additions and 4 deletions
|
|
@ -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,
|
||||
/// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue