Skip to content

Commit

Permalink
Renamed msg"" to m""
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jul 1, 2024
1 parent f1802f3 commit 0da5540
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/core/hypotenuse.DivisionError.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ import language.experimental.into

import fulminate.*

case class DivisionError() extends Error(msg"the result is unrepresentable")
case class DivisionError() extends Error(m"the result is unrepresentable")
18 changes: 9 additions & 9 deletions src/core/hypotenuse.Hypotenuse2.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ object Hypotenuse2:

case Some(digits) =>
val int = JInt.parseInt(digits)
if int < 0 then abandon(msg"a U16 may not be less than ${0}")
if int > 0xffff then abandon(msg"a U16 may not be greater than ${0xffff}")
if int < 0 then abandon(m"a U16 may not be less than ${0}")
if int > 0xffff then abandon(m"a U16 may not be greater than ${0xffff}")

Expr(int.toShort)

Expand All @@ -59,8 +59,8 @@ object Hypotenuse2:

case Some(digits) =>
val int = JInt.parseInt(digits)
if int < Short.MinValue then abandon(msg"an S16 may not be less than ${Short.MinValue.toInt}")
if int > Short.MaxValue then abandon(msg"an S16 may not be greater than ${Short.MaxValue.toInt}")
if int < Short.MinValue then abandon(m"an S16 may not be less than ${Short.MinValue.toInt}")
if int > Short.MaxValue then abandon(m"an S16 may not be greater than ${Short.MaxValue.toInt}")

Expr(int.toShort)

Expand All @@ -69,8 +69,8 @@ object Hypotenuse2:

case Some(digits) =>
val int = JInt.parseInt(digits)
if int < 0 then abandon(msg"a U8 may not be less than ${0}")
if int > 0xffff then abandon(msg"a U8 may not be greater than ${0xffff}")
if int < 0 then abandon(m"a U8 may not be less than ${0}")
if int > 0xffff then abandon(m"a U8 may not be greater than ${0xffff}")

Expr(int.toByte)

Expand All @@ -79,8 +79,8 @@ object Hypotenuse2:

case Some(digits) =>
val int = JInt.parseInt(digits)
if int < Byte.MinValue then abandon(msg"an S8 may not be less than ${Byte.MinValue.toInt}")
if int > Byte.MaxValue then abandon(msg"an S8 may not be greater than ${Byte.MaxValue.toInt}")
if int < Byte.MinValue then abandon(m"an S8 may not be less than ${Byte.MinValue.toInt}")
if int > Byte.MaxValue then abandon(m"an S8 may not be greater than ${Byte.MaxValue.toInt}")

Expr(int.toByte)

Expand All @@ -92,7 +92,7 @@ object Hypotenuse2:
(using Quotes)
: Expr[Boolean] =

val errorMessage = msg"this cannot be written as a range expression"
val errorMessage = m"this cannot be written as a range expression"

val value =
if greaterThan.valueOrAbort then expr match
Expand Down
2 changes: 1 addition & 1 deletion src/core/hypotenuse.OverflowError.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ package hypotenuse

import fulminate.*

case class OverflowError() extends Error(msg"an overflow error occurred")
case class OverflowError() extends Error(m"an overflow error occurred")

0 comments on commit 0da5540

Please sign in to comment.