Просмотр исходного кода

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.
Dana Jansens 1 год назад
Родитель
Сommit
f2479321fc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      docs/design/generics/details.md

+ 1 - 1
docs/design/generics/details.md

@@ -1852,7 +1852,7 @@ class IntWrapper {
       return left.x - right.x;
     }
   }
-  impl as Comparable = ComparableFromDifferenceFn(IntWrapper);
+  impl as Comparable = ComparableFromDifference(IntWrapper);
 }
 ```