Skip to content

Commit 6b50fd5

Browse files
authored
fixed typelevel.md
1 parent 42de57a commit 6b50fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/typelevel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ So the end result of the expansion is the expression `throw new IndexOutOfBounds
155155

156156
## Rewrite Conditionals
157157

158-
Like matches, if-then-else expressions can also be prefixed with the `rewrite` modifier. Such rewrite conditional must have conditions that with a compile-time boolean result. The conditional then recuces to one of its branches depending on whether the condition is knwon to be `true` or to be `false`.
158+
Like matches, if-then-else expressions can also be prefixed with the `rewrite` modifier. Such rewrite conditional must have conditions that with a compile-time boolean result. The conditional then recuces to one of its branches depending on whether the condition is known to be `true` or to be `false`.
159159

160160
For instance, here is an alternative version of `toNat` formulated with a conditional instead of a `match`.
161161
```scala

0 commit comments

Comments
 (0)