Skip to content

Commit f570f20

Browse files
committed
Typos
1 parent 2f017ac commit f570f20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_posts/2024-08-19-given-priority-change-3.7.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ title: "Upcoming Changes to Givens in Scala 3.7"
77

88
## New Prioritization of Givens in Scala 3.7
99

10-
Scala 3.7 introduces changes to how `givens` are resolved, which can
11-
affect program behavior when multiple givens are present.
10+
Scala 3.7 will introduce changes to how `given`s are resolved, which can
11+
affect program behavior when multiple `given`s are present.
1212

1313
For example, consider a library that provides a default
1414
`given` for a component:
@@ -44,7 +44,7 @@ run // Scala <= 3.6: prints "user-defined"
4444
```
4545

4646
What happened? In Scala 3.6 and earlier, the compiler prioritizes the
47-
`give`n with the _most specific_ compatible subtype
47+
`given` with the _most specific_ compatible subtype
4848
(`userComponent`). However, in Scala 3.7, it selects the value with the
4949
_most general_ subtype instead (`libComponent`).
5050

0 commit comments

Comments
 (0)