Skip to content

Commit 36298e7

Browse files
authored
Merge pull request #2696 from egaga/patch-3
Fix typos
2 parents 21f6fa2 + 258775e commit 36298e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/phantom-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ These are useful to prove static properties of the code using type evidences.
1212
As they have no effect on the runtime they can be erased from the resulting code by
1313
the compiler once it has shown the constraints hold.
1414

15-
When saying that a they have no effect on the runtime we do not only mean side effects
15+
When saying that they have no effect on the runtime we do not only mean side effects
1616
like IO, field mutation, exceptions and so on. We also imply that if a function receives
1717
a phantom its result will not be affected by this argument.
1818

@@ -79,7 +79,7 @@ from outside `MyPhantoms` unless an alias is defined for them.
7979

8080
New phantom types can be defined using `type XYZ <: OtherPhantom` (where `>: MyPhantom.Nothing`
8181
will be inferred), this would be the equivalent of `class XYZ extends OtherClass` on a types
82-
only (no runtime definitions). Or aliased with `type MyAny = OtherPhantom`. Whitin `MyPhantoms`
82+
only (no runtime definitions). Or aliased with `type MyAny = OtherPhantom`. Within `MyPhantoms`
8383
it is possible to refer to `MyPhantoms.Any` and `MyPhantoms.Nothing` with `this.Any` and
8484
`this.Nothing` (or just `Any` and `Nothing` but not recommended). Using this we will define
8585
four the four phantoms: `Inky`, `Blinky`, `Pinky` and `Clyde`.

0 commit comments

Comments
 (0)