summaryrefslogtreecommitdiff
path: root/src/geom/spec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/geom/spec.rs')
-rw-r--r--src/geom/spec.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/geom/spec.rs b/src/geom/spec.rs
index 546eac7b..e5479ba4 100644
--- a/src/geom/spec.rs
+++ b/src/geom/spec.rs
@@ -16,7 +16,7 @@ impl<T> Spec<T> {
}
/// Create a new instance with two equal components.
- pub fn uniform(value: T) -> Self
+ pub fn splat(value: T) -> Self
where
T: Clone,
{
@@ -68,8 +68,8 @@ impl<T> Switch for Spec<T> {
fn switch(self, main: SpecAxis) -> Self::Other {
match main {
- SpecAxis::Horizontal => Gen::new(self.horizontal, self.vertical),
- SpecAxis::Vertical => Gen::new(self.vertical, self.horizontal),
+ SpecAxis::Horizontal => Gen::new(self.vertical, self.horizontal),
+ SpecAxis::Vertical => Gen::new(self.horizontal, self.vertical),
}
}
}