File tree Expand file tree Collapse file tree 4 files changed +10
-18
lines changed
library/src/scala/compiletime/ops Expand file tree Collapse file tree 4 files changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object double:
3131
3232 /** Integer division of two `Double` singleton types.
3333 * ```scala
34- * val div: 5.0 / 2.0 = 2.0
34+ * val div: 5.0 / 2.0 = 2.5
3535 * ```
3636 * @syntax markdown
3737 */
@@ -91,8 +91,8 @@ object double:
9191
9292 /** Negation of an `Double` singleton type.
9393 * ```scala
94- * val neg1: Neg [-1.0] = 1.0
95- * val neg2: Neg [1.0] = -1.0
94+ * val neg1: Negate [-1.0] = 1.0
95+ * val neg2: Negate [1.0] = -1.0
9696 * ```
9797 * @syntax markdown
9898 */
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object float:
3131
3232 /** Integer division of two `Float` singleton types.
3333 * ```scala
34- * val div: 5.0f / 2.0f = 2.0f
34+ * val div: 5.0f / 2.0f = 2.5f
3535 * ```
3636 * @syntax markdown
3737 */
@@ -91,8 +91,8 @@ object float:
9191
9292 /** Negation of an `Float` singleton type.
9393 * ```scala
94- * val neg1: Neg [-1.0f] = 1.0f
95- * val neg2: Neg [1.0f] = -1.0f
94+ * val neg1: Negate [-1.0f] = 1.0f
95+ * val neg2: Negate [1.0f] = -1.0f
9696 * ```
9797 * @syntax markdown
9898 */
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ object long:
1212 * case 0L => 1L
1313 * case 1L => 2L
1414 * case 2L => 3L
15- * ...
15+ * // ...
1616 * case 9223372036854775806L => 9223372036854775807L
1717 * }
1818 * ```
@@ -155,8 +155,8 @@ object long:
155155
156156 /** Negation of an `Long` singleton type.
157157 * ```scala
158- * val neg1: Neg [-1L] = 1L
159- * val neg2: Neg [1L] = -1L
158+ * val neg1: Negate [-1L] = 1L
159+ * val neg2: Negate [1L] = -1L
160160 * ```
161161 * @syntax markdown
162162 */
@@ -178,14 +178,6 @@ object long:
178178 */
179179 type Max [X <: Long , Y <: Long ] <: Long
180180
181- /** String conversion of an `Long` singleton type.
182- * ```scala
183- * val abs: ToString[1L] = "1"
184- * ```
185- * @syntax markdown
186- */
187- type ToString [X <: Long ] <: String
188-
189181 /** Number of zero bits preceding the highest-order ("leftmost")
190182 * one-bit in the two's complement binary representation of the specified `Long` singleton type.
191183 * Returns 64 if the specified singleton type has no one-bits in its two's complement representation,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ object string:
1414
1515 /** Length of a `String` singleton type.
1616 * ```scala
17- * val helloSize: Size ["hello"] = 5
17+ * val helloSize: Length ["hello"] = 5
1818 * ```
1919 * @syntax markdown
2020 */
You can’t perform that action at this time.
0 commit comments