Skip to content

Commit

Permalink
Fix documentation errors. Remove redundant long.ToString
Browse files Browse the repository at this point in the history
  • Loading branch information
soronpo committed Oct 26, 2021
1 parent e8d00f8 commit 762d90e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 18 deletions.
6 changes: 3 additions & 3 deletions library/src/scala/compiletime/ops/double.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down
6 changes: 3 additions & 3 deletions library/src/scala/compiletime/ops/float.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down
14 changes: 3 additions & 11 deletions library/src/scala/compiletime/ops/long.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object long:
* case 0L => 1L
* case 1L => 2L
* case 2L => 3L
* ...
* // ...
* case 9223372036854775806L => 9223372036854775807L
* }
* ```
Expand Down Expand Up @@ -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
*/
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion library/src/scala/compiletime/ops/string.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 762d90e

Please sign in to comment.