From 5b86845605d88689cf04795dab2f309fcd29819c Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Thu, 19 Dec 2024 14:50:52 -0700 Subject: [PATCH] Fix docs for Bounds::from_corner_and_size (#22265) (left in a todo!, oops) Release Notes: - N/A --- crates/gpui/src/geometry.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/gpui/src/geometry.rs b/crates/gpui/src/geometry.rs index 11d03b2f7a..8d726f6d28 100644 --- a/crates/gpui/src/geometry.rs +++ b/crates/gpui/src/geometry.rs @@ -815,14 +815,8 @@ where Bounds { origin, size } } - /// Constructs a `Bounds` from a corner point and size. - /// - /// # Examples - /// - /// ``` - /// # use zed::{Bounds, Corner, Point}; - /// todo! - /// ``` + /// Constructs a `Bounds` from a corner point and size. The specified corner will be placed at + /// the specified origin. pub fn from_corner_and_size(corner: Corner, origin: Point, size: Size) -> Bounds { let origin = match corner { Corner::TopLeft => origin,