Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix docs for Bounds::from_corner_and_size (#22265)
Michael Sloan5b86845605d8
diff --git a/crates/gpui/src/geometry.rs b/crates/gpui/src/geometry.rsindex 11d03b2f7a4..8d726f6d289 100644--- a/crates/gpui/src/geometry.rs+++ b/crates/gpui/src/geometry.rs@@ -815,14 +815,8 @@ whereBounds { 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<T>, size: Size<T>) -> Bounds<T> {let origin = match corner {Corner::TopLeft => origin,