Correct name of ComparableFromDifference in Generics details (#4547)

The name ComparableFromDifferenceFn comes from the next example. In this
example ComparableFromDifference is the name of the class that will be
implictly cast to a Facet matching Comparable.
This commit is contained in:
Dana Jansens
2024-11-18 17:18:59 +00:00
committed by GitHub
parent cb94609889
commit f2479321fc
+1 -1
View File
@@ -1852,7 +1852,7 @@ class IntWrapper {
return left.x - right.x;
}
}
impl as Comparable = ComparableFromDifferenceFn(IntWrapper);
impl as Comparable = ComparableFromDifference(IntWrapper);
}
```