diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-13 13:51:58 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-13 13:51:58 +0200 |
| commit | 91e512069396f1de616ec2b0fe0cd31a76e7f2e9 (patch) | |
| tree | 204ef6032dd4d22b38236d4d85fc95c97e7a9f37 /src/geom/sides.rs | |
| parent | 8680fcd4903b451909a5932e8b948a68c9aacb16 (diff) | |
BoxAlign and Flow aliases ✏
Diffstat (limited to 'src/geom/sides.rs')
| -rw-r--r-- | src/geom/sides.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geom/sides.rs b/src/geom/sides.rs index 39487ff7..292f00c4 100644 --- a/src/geom/sides.rs +++ b/src/geom/sides.rs @@ -14,12 +14,12 @@ pub struct Sides<T> { } impl<T> Sides<T> { - /// Create a new box from four sizes. + /// Create a new instance from the four components. pub fn new(left: T, top: T, right: T, bottom: T) -> Self { Self { left, top, right, bottom } } - /// Create an instance with all four components set to the same `value`. + /// Create an instance with four equal components. pub fn uniform(value: T) -> Self where T: Clone, |
