Skip to content

Commit d65cf70

Browse files
authored
Merge pull request #2418 from breucode/main
Fix typo in Type Casting section
2 parents a755cd9 + 4772a39 commit d65cf70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)