diff options
| author | Martin <mhaug@live.de> | 2021-06-27 17:08:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-27 17:08:40 +0200 |
| commit | 57bd3e23c79878d106ab8be17c71caca6c4f5a7c (patch) | |
| tree | 0eb5fd53d66299de17ac49a608e5aa44b6411aaf /src/geom/length.rs | |
| parent | 6b6cdae7ce95681d6a1194be70b375494166a8c6 (diff) | |
Apply suggestions from code review
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'src/geom/length.rs')
| -rw-r--r-- | src/geom/length.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geom/length.rs b/src/geom/length.rs index 08bf3111..951cef4f 100644 --- a/src/geom/length.rs +++ b/src/geom/length.rs @@ -108,7 +108,7 @@ impl Length { self.raw + 1e-6 >= other.raw } - /// Compares to lengths for whether they are approximately equal. + /// Compares two lengths for whether they are approximately equal. pub fn approx_eq(self, other: Self) -> bool { self == other || (self - other).to_raw().abs() < 1e-6 } |
