summaryrefslogtreecommitdiff
path: root/src/geom/spec.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-21 15:28:26 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-21 15:28:26 +0200
commitf71c38b38d18c7d2ded22667ebff5cfdf591aeea (patch)
tree824b08cb2495fa13830268b5f6d2f37112e1ba43 /src/geom/spec.rs
parenta6f260ca39f70f82617eca87855789413715f47d (diff)
Turn backlog into iterator
Diffstat (limited to 'src/geom/spec.rs')
-rw-r--r--src/geom/spec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geom/spec.rs b/src/geom/spec.rs
index ead67f11..6d669d19 100644
--- a/src/geom/spec.rs
+++ b/src/geom/spec.rs
@@ -45,8 +45,8 @@ impl<T> Spec<T> {
}
}
- /// Compare to whether two instances are equal when compared field-by-field
- /// with `f`.
+ /// Compares if this instance's field are equal to that of another with
+ /// respect to `eq`.
pub fn eq_by<U, F>(&self, other: &Spec<U>, eq: F) -> bool
where
F: Fn(&T, &U) -> bool,