From 0a428f0887c93f44545ec280778b295e7aa577c8 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Fri, 29 Mar 2024 15:58:22 +0100 Subject: [PATCH] Improve docs of `ui.collapsing` See https://github.com/emilk/egui/issues/4265 --- crates/egui/src/ui.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index 56db9e97..9ff05a26 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -1806,6 +1806,9 @@ impl Ui { } /// A [`CollapsingHeader`] that starts out collapsed. + /// + /// The name must be unique within the current parent, + /// or you need to use [`CollapsingHeader::id_source`]. pub fn collapsing( &mut self, heading: impl Into,