mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:30:12 +01:00
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:
@@ -1852,7 +1852,7 @@ class IntWrapper {
|
||||
return left.x - right.x;
|
||||
}
|
||||
}
|
||||
impl as Comparable = ComparableFromDifferenceFn(IntWrapper);
|
||||
impl as Comparable = ComparableFromDifference(IntWrapper);
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user