File tree 4 files changed +10
-18
lines changed
library/src/scala/compiletime/ops
4 files changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object double:
31
31
32
32
/** Integer division of two `Double` singleton types.
33
33
* ```scala
34
- * val div: 5.0 / 2.0 = 2.0
34
+ * val div: 5.0 / 2.0 = 2.5
35
35
* ```
36
36
* @syntax markdown
37
37
*/
@@ -91,8 +91,8 @@ object double:
91
91
92
92
/** Negation of an `Double` singleton type.
93
93
* ```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
96
96
* ```
97
97
* @syntax markdown
98
98
*/
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object float:
31
31
32
32
/** Integer division of two `Float` singleton types.
33
33
* ```scala
34
- * val div: 5.0f / 2.0f = 2.0f
34
+ * val div: 5.0f / 2.0f = 2.5f
35
35
* ```
36
36
* @syntax markdown
37
37
*/
@@ -91,8 +91,8 @@ object float:
91
91
92
92
/** Negation of an `Float` singleton type.
93
93
* ```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
96
96
* ```
97
97
* @syntax markdown
98
98
*/
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ object long:
12
12
* case 0L => 1L
13
13
* case 1L => 2L
14
14
* case 2L => 3L
15
- * ...
15
+ * // ...
16
16
* case 9223372036854775806L => 9223372036854775807L
17
17
* }
18
18
* ```
@@ -155,8 +155,8 @@ object long:
155
155
156
156
/** Negation of an `Long` singleton type.
157
157
* ```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
160
160
* ```
161
161
* @syntax markdown
162
162
*/
@@ -178,14 +178,6 @@ object long:
178
178
*/
179
179
type Max [X <: Long , Y <: Long ] <: Long
180
180
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
-
189
181
/** Number of zero bits preceding the highest-order ("leftmost")
190
182
* one-bit in the two's complement binary representation of the specified `Long` singleton type.
191
183
* 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:
14
14
15
15
/** Length of a `String` singleton type.
16
16
* ```scala
17
- * val helloSize: Size ["hello"] = 5
17
+ * val helloSize: Length ["hello"] = 5
18
18
* ```
19
19
* @syntax markdown
20
20
*/
You can’t perform that action at this time.
0 commit comments