From dcfbf95220300a7866b6d03953fb4d29511cd6fa Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 22 Jul 2021 23:28:12 +0200 Subject: [PATCH] Fix comment --- src/layout/incremental.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/layout/incremental.rs b/src/layout/incremental.rs index e4496f06d..e5bad8924 100644 --- a/src/layout/incremental.rs +++ b/src/layout/incremental.rs @@ -278,15 +278,15 @@ impl Constraints { /// Extends length-related options by providing convenience methods for setting /// minimum and maximum lengths on them, even if they are `None`. pub trait OptionExt { - // Sets `other` as the value if the Option is `None` or if it contains a - // value larger than `other`. + /// Sets `other` as the value if `self` is `None` or if it contains a + /// value larger than `other`. fn set_min(&mut self, other: Length); - // Sets `other` as the value if the Option is `None` or if it contains a - // value smaller than `other`. + /// Sets `other` as the value if `self` is `None` or if it contains a + /// value smaller than `other`. fn set_max(&mut self, other: Length); - /// Sets `other` as the value if the Option is `Some`. + /// Sets `other` as the value if `self` is `Some`. fn set_if_some(&mut self, other: Length); }