Skip to content

Commit 8c3f1a6

Browse files
authored
CC Language Ref Polishings (#23762)
Continuation of #23709 - [ ] Add material on how to use the capture checker (wait for cc-lib merge) - [ ] Check everything for completeness and accuracy - [ ] Also: Add two test files named `reference-cc.scala` in neg and pos that let us try out the code on the doc pages.
2 parents fdf052d + 8780d2c commit 8c3f1a6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docs/_docs/reference/experimental/capture-checking/how-to-use.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ The following options are relevant for capture checking.
1414

1515
- **-Vprint:cc** Prints the program with capturing types as inferred by capture checking.
1616
- **-Ycc-verbose** Prints capabilities and capturing types in more detail.
17-
- **-Ycc-debug** Gives more detailed, implementation-oriented information about capture checking, as described in the next section.
18-
19-
The implementation supporting capture checking with these options is currently in branch `cc-experiment` on dotty.epfl.ch.
17+
- **-Ycc-debug** Gives more detailed, implementation-oriented information about capture checking, as described in the next section.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ So, effectively, anything that can be updated must be unaliased.
4545
## Capability Kinds
4646

4747
A capability is called
48-
- _shared_ if it is [classified](../classifiers.md) as a `SharedCapability`
48+
- _shared_ if it is [classified](classifiers.md) as a `SharedCapability`
4949
- _exclusive_ otherwise.
5050

5151
## The Mutable Trait
@@ -54,7 +54,7 @@ We introduce a new trait
5454
```scala
5555
trait Mutable extends ExclusiveCapability, Classifier
5656
```
57-
It is used as a [classifier](../classifiers.md) trait for types that define _update methods_ using
57+
It is used as a [classifier](classifiers.md) trait for types that define _update methods_ using
5858
a new soft modifier `update`.
5959

6060
**Example:**

0 commit comments

Comments
 (0)