Skip to content

Commit 416f4f5

Browse files
committed
Remove inexact description in docs
1 parent 04417c1 commit 416f4f5

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,29 +89,19 @@ List("a", "bb", "ccc").sumBy[Int](_.length)
8989
```
9090

9191
By contrast, type arguments matching type parameters following `extension` can be passed
92-
in two different ways:
92+
in two different forms:
9393

9494
- When the method is referenced as an extension method:
9595

9696
```scala
9797
List("a", "bb", "ccc").sumBy[Int](_.length)
98-
```
99-
100-
Or, when passing both type arguments:
101-
102-
```scala
10398
List[String]("a", "bb", "ccc").sumBy[Int](_.length)
10499
```
105100

106101
- When the method is referenced as a non-extension method:
107102

108103
```scala
109104
sumBy[String](List("a", "bb", "ccc"))(_.length)
110-
```
111-
112-
Or, when passing both type arguments:
113-
114-
```scala
115105
sumBy[String](List("a", "bb", "ccc"))[Int](_.length)
116106
```
117107

0 commit comments

Comments
 (0)