We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06a665a commit 0bd8ff0Copy full SHA for 0bd8ff0
docs/docs/reference/contextual/inferable-params.md
@@ -18,7 +18,7 @@ def max[T](x: T, y: T) given (ord: Ord[T]): T =
18
Here, `ord` is an _implicit parameter_ introduced with a `given` clause.
19
The `max` method can be applied as follows:
20
```scala
21
-max(2, 3).given(IntOrd)
+max(2, 3) given IntOrd
22
```
23
The `given IntOrd` part passes `IntOrd` as an argument for the `ord` parameter. But the point of
24
implicit parameters is that this argument can also be left out (and it usually is). So the following
0 commit comments