diff --git a/crates/gpui/src/geometry.rs b/crates/gpui/src/geometry.rs index 53f83ec78f11904d7de26b32ff07bbf8fa8dcec6..75c0fb107cd91ca9758230a5b1e642bc6bf9250a 100644 --- a/crates/gpui/src/geometry.rs +++ b/crates/gpui/src/geometry.rs @@ -1257,6 +1257,7 @@ where /// origin: Point { x: 15.0, y: 15.0 }, /// size: Size { width: 15.0, height: 30.0 }, /// }); + /// ``` pub fn map(&self, f: impl Fn(T) -> U) -> Bounds where U: Clone + Default + Debug, @@ -1283,6 +1284,7 @@ where /// origin: Point { x: 15.0, y: 15.0 }, /// size: Size { width: 10.0, height: 20.0 }, /// }); + /// ``` pub fn map_origin(self, f: impl Fn(Point) -> Point) -> Bounds { Bounds { origin: f(self.origin),