Update comment

This commit is contained in:
Hanno Braun 2025-03-24 20:40:53 +01:00
parent d9ce7f436c
commit 4fe51e94f6

View File

@ -188,8 +188,8 @@ impl Ord for Scalar {
impl Hash for Scalar { impl Hash for Scalar {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) { fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
// To the best of my knowledge, this matches the `PartialEq` // The `Eq`/`PartialEq` implementation is also using `R64`. So these
// implementation. // implementations match, as required by `Hash`.
R64::from_inner(self.value).hash(state); R64::from_inner(self.value).hash(state);
} }
} }