Skip to content

Commit c0941e7

Browse files
authored
Update union-types.md (#17208)
2 parents 848aeda + 3a45042 commit c0941e7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/_docs/reference/changed-features/lazy-vals-init.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ title: Lazy Vals Initialization
44
nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/lazy-vals-init.html
55
---
66

7-
Scala 3 implements [Version 6](https://docs.scala-lang.org/sips/improved-lazy-val-initialization.html#version-6---no-synchronization-on-this-and-concurrent-initialization-of-fields)
8-
of the [SIP-20] improved lazy vals initialization proposal.
7+
Scala 3 implements Version 6 of the [SIP-20] improved lazy vals initialization proposal.
98

109
## Motivation
1110

@@ -77,4 +76,4 @@ recursive lazy vals is undefined (initialization may result in a deadlock).
7776

7877
* [SIP-20]
7978

80-
[SIP-20]: https://docs.scala-lang.org/sips/improved-lazy-val-initialization.html
79+
[SIP-20]: https://github.com/scala/improvement-proposals/pull/19

docs/_docs/reference/new-types/union-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Union Types"
44
nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types/union-types.html
55
---
66

7-
A union type `A | B` has as values all values of type `A` and also all values of type `B`.
7+
A union type `A | B` includes all values of both types.
88

99

1010
```scala

0 commit comments

Comments
 (0)