Skip to content

Commit

Permalink
Rename Raises to Errant
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Apr 8, 2024
1 parent 3e604c1 commit 21fca42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/regex.scala
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ object Regex:
import errorHandlers.throwUnsafely
parse(parts.to(List).map(_.tt))

def apply(text: Text)(using Raises[RegexError]): Regex = parse(List(text))
def apply(text: Text)(using Errant[RegexError]): Regex = parse(List(text))

def parse(parts: List[Text])(using Raises[RegexError]): Regex =
def parse(parts: List[Text])(using Errant[RegexError]): Regex =
(parts: @unchecked) match
case head :: tail =>
if !tail.all(_.s.startsWith("(")) then abort(RegexError(ExpectedGroup))
Expand Down

0 comments on commit 21fca42

Please sign in to comment.