diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-22 23:28:12 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-25 01:03:38 +0200 |
| commit | dcfbf95220300a7866b6d03953fb4d29511cd6fa (patch) | |
| tree | 4dc6c5a826d5917ff66ca393d83c3c855dd56515 /src/layout/incremental.rs | |
| parent | adb71ee040752f9348b0c9a511b2ab7e3710cb80 (diff) | |
Fix comment
Diffstat (limited to 'src/layout/incremental.rs')
| -rw-r--r-- | src/layout/incremental.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/layout/incremental.rs b/src/layout/incremental.rs index e4496f06..e5bad892 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); } |
