From f2479321fce831717550b2ca90d5d7ff69f96d52 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 18 Nov 2024 12:18:59 -0500 Subject: [PATCH] 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. --- docs/design/generics/details.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/design/generics/details.md b/docs/design/generics/details.md index 19c014fd2fad..8e15fdc46d48 100644 --- a/docs/design/generics/details.md +++ b/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); } ```