Skip to content

Commit

Permalink
Merge pull request #2418 from breucode/main
Browse files Browse the repository at this point in the history
Fix typo in Type Casting section
  • Loading branch information
Philippus authored Jun 3, 2022
2 parents a755cd9 + 4772a39 commit d65cf70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _overviews/scala3-book/first-look-at-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ You can only cast to a type if there is no loss of information. Otherwise, you n

```scala
val x: Long = 987654321
val y: Float = x.toFloat // 9.8765434E8 (note that `.toFloat` is required because the cast results in percision loss)
val y: Float = x.toFloat // 9.8765434E8 (note that `.toFloat` is required because the cast results in precision loss)
val z: Long = y // Error
```

Expand Down

0 comments on commit d65cf70

Please sign in to comment.