diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index 215a9423482925..1b317e1ee30daa 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();