From f1fff901121c53c85fe348721db6fd569732a7ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magda=20Sto=C5=BCek?= Date: Fri, 3 Dec 2021 14:10:27 +0100 Subject: [PATCH] Typo fix --- _scala3-reference/contextual/using-clauses.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_scala3-reference/contextual/using-clauses.md b/_scala3-reference/contextual/using-clauses.md index 4f98c760ff..b233c84667 100644 --- a/_scala3-reference/contextual/using-clauses.md +++ b/_scala3-reference/contextual/using-clauses.md @@ -45,7 +45,7 @@ def maximum[T](xs: List[T])(using Ord[T]): T = xs.reduceLeft(max) ``` -`maximum` takes a context parameter of type `Ord` only to pass it on as an +`maximum` takes a context parameter of type `Ord[T]` only to pass it on as an inferred argument to `max`. The name of the parameter is left out. 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.