Skip to content

Commit e55a781

Browse files
authored
Merge pull request #13067 from performantdata/patch-1
correct `with` to `using`
2 parents cf6fa97 + 0c9bf98 commit e55a781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/contextual/context-bounds.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A context bound is a shorthand for expressing the common pattern of a context pa
99
def maximum[T: Ord](xs: List[T]): T = xs.reduceLeft(max)
1010
```
1111

12-
A bound like `: Ord` on a type parameter `T` of a method or class indicates a context parameter `with Ord[T]`. The context parameter(s) generated from context bounds come last in the definition of the containing method or class. For instance,
12+
A bound like `: Ord` on a type parameter `T` of a method or class indicates a context parameter `using Ord[T]`. The context parameter(s) generated from context bounds come last in the definition of the containing method or class. For instance,
1313

1414
```scala
1515
def f[T: C1 : C2, U: C3](x: T)(using y: U, z: V): R

0 commit comments

Comments
 (0)