Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Fix documentation of window methods (#43315)
Marco Mihai Condracheab0527b3908b
diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rsindex 215a9423482..1b317e1ee30 100644--- a/crates/gpui/src/window.rs+++ b/crates/gpui/src/window.rs@@ -2434,7 +2434,7 @@ impl Window {}/// Updates the cursor style at the platform level. This method should only be called- /// during the prepaint phase of element drawing.+ /// during the paint phase of element drawing.pub fn set_cursor_style(&mut self, style: CursorStyle, hitbox: &Hitbox) {self.invalidator.debug_assert_paint();self.next_frame.cursor_styles.push(CursorStyleRequest {@@ -2445,7 +2445,7 @@ impl Window {/// Updates the cursor style for the entire window at the platform level. A cursor/// style using this method will have precedence over any cursor style set using- /// `set_cursor_style`. This method should only be called during the prepaint+ /// `set_cursor_style`. This method should only be called during the paint/// phase of element drawing.pub fn set_window_cursor_style(&mut self, style: CursorStyle) {self.invalidator.debug_assert_paint();