mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 12:22:49 +03:00
Close the backticks in gpui geometry examples (#10579)
I noticed some of the examples in `crates/gpui/src/geometry.rs` were missing ending triple backticks. Release Notes: - N/A
This commit is contained in:
parent
4d314b2dd0
commit
f5c2483423
@ -1257,6 +1257,7 @@ where
|
||||
/// origin: Point { x: 15.0, y: 15.0 },
|
||||
/// size: Size { width: 15.0, height: 30.0 },
|
||||
/// });
|
||||
/// ```
|
||||
pub fn map<U>(&self, f: impl Fn(T) -> U) -> Bounds<U>
|
||||
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<T>) -> Point<T>) -> Bounds<T> {
|
||||
Bounds {
|
||||
origin: f(self.origin),
|
||||
|
Loading…
Reference in New Issue
Block a user