Fix comment

This commit is contained in:
Laurenz 2021-07-22 23:28:12 +02:00
parent adb71ee040
commit dcfbf95220

View File

@ -278,15 +278,15 @@ impl Constraints {
/// Extends length-related options by providing convenience methods for setting /// Extends length-related options by providing convenience methods for setting
/// minimum and maximum lengths on them, even if they are `None`. /// minimum and maximum lengths on them, even if they are `None`.
pub trait OptionExt { pub trait OptionExt {
// Sets `other` as the value if the Option is `None` or if it contains a /// Sets `other` as the value if `self` is `None` or if it contains a
// value larger than `other`. /// value larger than `other`.
fn set_min(&mut self, other: Length); fn set_min(&mut self, other: Length);
// Sets `other` as the value if the Option is `None` or if it contains a /// Sets `other` as the value if `self` is `None` or if it contains a
// value smaller than `other`. /// value smaller than `other`.
fn set_max(&mut self, other: Length); 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); fn set_if_some(&mut self, other: Length);
} }