diff --git a/library/src/scala/compiletime/ops/double.scala b/library/src/scala/compiletime/ops/double.scala index e06ff64c3f05..e9b13ab9dcd6 100644 --- a/library/src/scala/compiletime/ops/double.scala +++ b/library/src/scala/compiletime/ops/double.scala @@ -31,7 +31,7 @@ object double: /** Integer division of two `Double` singleton types. * ```scala - * val div: 5.0 / 2.0 = 2.0 + * val div: 5.0 / 2.0 = 2.5 * ``` * @syntax markdown */ @@ -91,8 +91,8 @@ object double: /** Negation of an `Double` singleton type. * ```scala - * val neg1: Neg[-1.0] = 1.0 - * val neg2: Neg[1.0] = -1.0 + * val neg1: Negate[-1.0] = 1.0 + * val neg2: Negate[1.0] = -1.0 * ``` * @syntax markdown */ diff --git a/library/src/scala/compiletime/ops/float.scala b/library/src/scala/compiletime/ops/float.scala index d5aeb2d5f4f7..27a1a19c17c1 100644 --- a/library/src/scala/compiletime/ops/float.scala +++ b/library/src/scala/compiletime/ops/float.scala @@ -31,7 +31,7 @@ object float: /** Integer division of two `Float` singleton types. * ```scala - * val div: 5.0f / 2.0f = 2.0f + * val div: 5.0f / 2.0f = 2.5f * ``` * @syntax markdown */ @@ -91,8 +91,8 @@ object float: /** Negation of an `Float` singleton type. * ```scala - * val neg1: Neg[-1.0f] = 1.0f - * val neg2: Neg[1.0f] = -1.0f + * val neg1: Negate[-1.0f] = 1.0f + * val neg2: Negate[1.0f] = -1.0f * ``` * @syntax markdown */ diff --git a/library/src/scala/compiletime/ops/long.scala b/library/src/scala/compiletime/ops/long.scala index f3158e12c2f6..92e6bd370f5b 100644 --- a/library/src/scala/compiletime/ops/long.scala +++ b/library/src/scala/compiletime/ops/long.scala @@ -12,7 +12,7 @@ object long: * case 0L => 1L * case 1L => 2L * case 2L => 3L - * ... + * // ... * case 9223372036854775806L => 9223372036854775807L * } * ``` @@ -155,8 +155,8 @@ object long: /** Negation of an `Long` singleton type. * ```scala - * val neg1: Neg[-1L] = 1L - * val neg2: Neg[1L] = -1L + * val neg1: Negate[-1L] = 1L + * val neg2: Negate[1L] = -1L * ``` * @syntax markdown */ @@ -178,14 +178,6 @@ object long: */ type Max[X <: Long, Y <: Long] <: Long - /** String conversion of an `Long` singleton type. - * ```scala - * val abs: ToString[1L] = "1" - * ``` - * @syntax markdown - */ - type ToString[X <: Long] <: String - /** Number of zero bits preceding the highest-order ("leftmost") * one-bit in the two's complement binary representation of the specified `Long` singleton type. * Returns 64 if the specified singleton type has no one-bits in its two's complement representation, diff --git a/library/src/scala/compiletime/ops/string.scala b/library/src/scala/compiletime/ops/string.scala index 51e336ab7adc..6214f983db32 100644 --- a/library/src/scala/compiletime/ops/string.scala +++ b/library/src/scala/compiletime/ops/string.scala @@ -14,7 +14,7 @@ object string: /** Length of a `String` singleton type. * ```scala - * val helloSize: Size["hello"] = 5 + * val helloSize: Length["hello"] = 5 * ``` * @syntax markdown */