chore: ignore doc tests for segmented button examples

This commit is contained in:
Michael Aaron Murphy 2023-01-04 01:26:33 +01:00 committed by Michael Murphy
parent a736b361a1
commit 176c30901a

View file

@ -7,7 +7,7 @@
//!
//! Add the state and a message variant in your application for handling selections.
//!
//! ```no_run
//! ```ignore
//! use iced_core::Length;
//! use cosmic::theme;
//! use cosmic::widget::segmented_button;
@ -25,7 +25,7 @@
//!
//! Then add choices to the state, while activating the first.
//!
//! ```no_run
//! ```ignore
//! let first_key = application.state.insert("Choice A", 0);
//! application.state.insert("Choice B", 1);
//! application.state.insert("Choice C", 2);
@ -34,7 +34,7 @@
//!
//! Then use it in the view method to create segmented button widgets.
//!
//! ```no_run
//! ```ignore
//! let widget = segmentend_button(&application.state)
//! .style(theme::SegmentedButton::Selection)
//! .height(Length::Units(32))