Skip to content

Commit 66ff446

Browse files
committed
Pass over cc.md
1 parent 3658d3d commit 66ff446

File tree

1 file changed

+4
-4
lines changed
  • docs/_docs/reference/experimental/capture-checking

1 file changed

+4
-4
lines changed

docs/_docs/reference/experimental/capture-checking/cc.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import language.experimental.captureChecking
1515
At present, capture checking is still highly experimental and unstable, and it evolves quickly.
1616
Before trying it out, make sure you have the latest version of Scala.
1717

18-
The rest of this page explains the basics capture checking. Further topics are described in the following pages:
18+
The rest of this page explains the basics of capture checking. Further topics are described in the following pages:
1919

2020
- [Capture Checking of Classes](./classes.md)
2121
- [Capability Polymorphism](./polymorphism.md)
@@ -90,7 +90,7 @@ try-with-resources patterns, it can also be a key part to the solutions of many
9090
- How to address the problem of effect polymorphism in general.
9191
- How to solve the "what color is your function?" problem of mixing synchronous
9292
and asynchronous computations.
93-
- How to do region-based allocation, safely,
93+
- How to do region-based allocation, safely.
9494
- How to reason about capabilities associated with memory locations.
9595

9696
The following sections explain in detail how capture checking works in Scala 3.
@@ -194,8 +194,8 @@ analogous _subcapturing_ relation applies to capture sets. If `C₁` and `C₂`
194194

195195
Subtyping extends as follows to capturing types:
196196

197-
- Pure types are subtypes of capturing types. That is, `T <: C T`, for any type `T`, capturing set `C`.
198-
- For capturing types, smaller capturing sets produce subtypes: `C₁ T₁ <: C₂ T` if
197+
- Pure types are subtypes of capturing types. That is, `T <: T ^ C`, for any type `T`, capturing set `C`.
198+
- For capturing types, smaller capturing sets produce subtypes: `T₁ ^ C₁ <: T₂ ^ C` if
199199
`C₁ <: C₂` and `T₁ <: T₂`.
200200

201201
A subcapturing relation `C₁ <: C₂` holds if `C₂` _accounts for_ every element `c` in `C₁`. This means one of the following three conditions must be true:

0 commit comments

Comments
 (0)