Skip to content

Commit 8443c16

Browse files
Merge pull request #11310 from iroha168/fix-docs
fix type parameter name
2 parents 406ff9d + 0fce48e commit 8443c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/contextual/extension-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Type parameters on extensions can also be combined with type parameters on the m
7878
themselves:
7979
```scala
8080
extension [T](xs: List[T])
81-
def sumBy[B](f: A => B)(using Numeric[B]): B = ...
81+
def sumBy[U](f: T => U)(using Numeric[U]): U = ...
8282
```
8383

8484
Type arguments matching method type parameters are passed as usual:

0 commit comments

Comments
 (0)