Skip to content

Commit 26a697b

Browse files
authored
Merge pull request #2880 from lampepfl/nicolasstucki-patch-1
Fix typos
2 parents 76df105 + 9d6a5cf commit 26a697b

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
@@ -16,10 +16,10 @@ When saying that they have no effect on the runtime we do not only mean side eff
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

19-
As phantom do not live at runtime they cannot be subtypes of `scala.Any`, which deffines
19+
As phantom do not live at runtime they cannot be subtypes of `scala.Any`, which defines
2020
methods such as `hashCode`, `equals`, `getClass`, `asInstanceOf` and `isInstanceOf`.
2121
All these operations cannot exist on phantoms as there will not be an underlying object
22-
instance at runtime. At first glace this could look like a limitation, but in fact not
22+
instance at runtime. At first glance this could look like a limitation, but in fact not
2323
having `asInstanceOf` will make constraints more reliable as it will not be possible to
2424
downcast a phantom value to fake an evidence.
2525

0 commit comments

Comments
 (0)