Skip to content

Commit 4772a39

Browse files
committed
Fix typo in Type Casting section
1 parent a755cd9 commit 4772a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/first-look-at-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ You can only cast to a type if there is no loss of information. Otherwise, you n
249249

250250
```scala
251251
val x: Long = 987654321
252-
val y: Float = x.toFloat // 9.8765434E8 (note that `.toFloat` is required because the cast results in percision loss)
252+
val y: Float = x.toFloat // 9.8765434E8 (note that `.toFloat` is required because the cast results in precision loss)
253253
val z: Long = y // Error
254254
```
255255

0 commit comments

Comments
 (0)