Skip to content

Commit 82b84da

Browse files
authored
Merge pull request #4963 from gpevnev/erased-terms-typo
fixed typo from `InOn[On]` to `isOn[On]`
2 parents 20945a2 + f3d84c5 commit 82b84da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/erased-terms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ State machine with erased evidence example
8585
The following example is an extended implementation of a simple state machine which can be in a state `On` or `Off`.
8686
The machine can change state from `Off` to `On` with `turnedOn` only if it is currently `Off`,
8787
conversely from `On` to `Off` with `turnedOff` only if it is currently `On`. These last constraint are
88-
captured with the `IsOff[S]` and `IsOn[S]` implicit evidence only exist for `IsOff[Off]` and `InOn[On]`.
88+
captured with the `IsOff[S]` and `IsOn[S]` implicit evidence only exist for `IsOff[Off]` and `IsOn[On]`.
8989
For example, not allowing calling `turnedOff` on in an `Off` state as we would require an evidence `IsOn[Off]`
9090
that will not be found.
9191

@@ -112,7 +112,7 @@ object IsOff {
112112
@implicitNotFound("State is must be On")
113113
class IsOn[S <: State]
114114
object IsOn {
115-
// def isOn will not exist at runtime, the compiler will only require that this evidence exists at compile time
115+
// erased val isOn will not exist at runtime, the compiler will only require that this evidence exists at compile time
116116
erased implicit val isOn: IsOn[On] = new IsOn[On]
117117
}
118118

0 commit comments

Comments
 (0)