Skip to content

Commit 665b7ae

Browse files
authored
Typo fix (#2259)
1 parent d2c7e7b commit 665b7ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_scala3-reference/contextual/using-clauses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def maximum[T](xs: List[T])(using Ord[T]): T =
4545
xs.reduceLeft(max)
4646
```
4747

48-
`maximum` takes a context parameter of type `Ord` only to pass it on as an
48+
`maximum` takes a context parameter of type `Ord[T]` only to pass it on as an
4949
inferred argument to `max`. The name of the parameter is left out.
5050

5151
Generally, context parameters may be defined either as a full parameter list `(p_1: T_1, ..., p_n: T_n)` or just as a sequence of types `T_1, ..., T_n`. Vararg parameters are not supported in `using` clauses.

0 commit comments

Comments
 (0)