summaryrefslogtreecommitdiff
path: root/src/geom/spec.rs
diff options
context:
space:
mode:
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,