Skip to content

Commit 2ff0b4c

Browse files
committed
Fix typo
1 parent 398c8ce commit 2ff0b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/contextual/givens.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ returned for this and all subsequent accesses to `global`.
6262
Alias givens can be anonymous, e.g.
6363
```scala
6464
given as Position = enclosingTree.position
65-
given with outer: Context as Context = outer.withOwner(currentOwner)
65+
given with (outer: Context) as Context = outer.withOwner(currentOwner)
6666
```
6767
An alias given can have type parameters and implicit parameters just like any other given,
6868
but it can only implement a single type.

0 commit comments

Comments
 (0)