Fix docs for Bounds::from_corner_and_size (#22265)

(left in a todo!, oops)

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2024-12-19 14:50:52 -07:00 committed by GitHub
parent 9782abf3c5
commit 5b86845605
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<T>, size: Size<T>) -> Bounds<T> {
let origin = match corner {
Corner::TopLeft => origin,