Skip to content

Commit 4b77a19

Browse files
committed
fixed: Logarithms->MyMaths in text
1 parent 991ea62 commit 4b77a19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/other-new-features/opaques.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ end MyMath
3232

3333
This introduces `Logarithm` as a new abstract type, which is implemented as `Double`.
3434
The fact that `Logarithm` is the same as `Double` is only known in the scope where
35-
`Logarithm` is defined which in the above example corresponds to the object `Logarithms`.
35+
`Logarithm` is defined which in the above example corresponds to the object `MyMath`.
3636
Or in other words, within the scope it is treated as type alias, but this is opaque to the outside world
3737
where in consequence `Logarithm` is seen as an abstract type and has nothing to do with `Double`.
3838

3939
The public API of `Logarithm` consists of the `apply` and `safe` methods defined in the companion object.
4040
They convert from `Double`s to `Logarithm` values. Moreover, an operation `toDouble` that converts the other way, and operations `+` and `*` are defined as extension methods on `Logarithm` values.
41-
The following operations would be valid because they use functionality implemented in the `Logarithms` object.
41+
The following operations would be valid because they use functionality implemented in the `MyMath` object.
4242

4343
```scala
4444
import MyMath.Logarithm

0 commit comments

Comments
 (0)