diff options
Diffstat (limited to 'src/geom/fraction.rs')
| -rw-r--r-- | src/geom/fraction.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geom/fraction.rs b/src/geom/fraction.rs index 2f33a134..f7188603 100644 --- a/src/geom/fraction.rs +++ b/src/geom/fraction.rs @@ -30,8 +30,8 @@ impl Fraction { Self::new(self.get().abs()) } - /// Resolve this fraction's share in the remaining space. - pub fn resolve(self, total: Self, remaining: Length) -> Length { + /// Determine this fraction's share in the remaining space. + pub fn share(self, total: Self, remaining: Length) -> Length { let ratio = self / total; if ratio.is_finite() && remaining.is_finite() { ratio * remaining |
