Skip to content

Commit 1582216

Browse files
authored
doc(opaque): replace own type with abstract type
1 parent 97bc111 commit 1582216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This introduces `Logarithm` as a new abstract type, which is implemented as `Dou
3333
The fact that `Logarithm` is the same as `Double` is only known in the scope where
3434
`Logarithm` is defined which in the above example corresponds to the object `Logarithms`.
3535
Or in other words, within the scope it is treated as type alias, but this is opaque to the outside world
36-
where in consequence `Logarithm` is treated as own type and has nothing to do with `Double`.
36+
where in consequence `Logarithm` is seen as an abstract type and has nothing to do with `Double`.
3737

3838
The public API of `Logarithm` consists of the `apply` and `safe` methods defined in the companion object.
3939
They convert from `Double`s to `Logarithm` values. Moreover, a collective extension `logarithmOps` provides the extension methods `toDouble` that converts the other way,

0 commit comments

Comments
 (0)