mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
fix doc example
This commit is contained in:
@@ -3183,10 +3183,6 @@ impl Ui {
|
|||||||
/// Example:
|
/// Example:
|
||||||
/// ```
|
/// ```
|
||||||
/// # egui::__run_test_ui(|ui| {
|
/// # egui::__run_test_ui(|ui| {
|
||||||
/// // Check if the parent has the "test" modifier
|
|
||||||
/// ui.style_stack().parent.is_some_and(|parent| parent.modifiers.has("test"));
|
|
||||||
///
|
|
||||||
/// // Same but shorter
|
|
||||||
/// ui.style_stack().parent_has("test");
|
/// ui.style_stack().parent_has("test");
|
||||||
/// # });
|
/// # });
|
||||||
/// ```
|
/// ```
|
||||||
|
|||||||
Reference in New Issue
Block a user