From 1d5f20b46c1362e39dba682adc9b0b82cf87b7e6 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 5 Sep 2022 12:05:29 +0200 Subject: [PATCH] Improve docstrings Closes https://github.com/emilk/egui/issues/2001 --- crates/egui/src/containers/window.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/containers/window.rs b/crates/egui/src/containers/window.rs index a490eb8e..3712432a 100644 --- a/crates/egui/src/containers/window.rs +++ b/crates/egui/src/containers/window.rs @@ -78,14 +78,14 @@ impl<'open> Window<'open> { } /// Usage: `Window::new(…).mutate(|w| w.resize = w.resize.auto_expand_width(true))` - /// Not sure this is a good interface for this. + // TODO(emilk): I'm not sure this is a good interface for this. pub fn mutate(mut self, mutate: impl Fn(&mut Self)) -> Self { mutate(&mut self); self } /// Usage: `Window::new(…).resize(|r| r.auto_expand_width(true))` - /// Not sure this is a good interface for this. + // TODO(emilk): I'm not sure this is a good interface for this. pub fn resize(mut self, mutate: impl Fn(Resize) -> Resize) -> Self { self.resize = mutate(self.resize); self