diff --git a/crates/gpui/src/geometry.rs b/crates/gpui/src/geometry.rs index 11d03b2f7a4f4d11fb0e2b6c55278618d5fc03e1..8d726f6d2891afe05a96748d0f076d21e916f5d6 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,