Skip to content

Commit

Permalink
Merge pull request #1547 from bjaglin/fix-docs
Browse files Browse the repository at this point in the history
 fix docs: reflect new param signature after #907
  • Loading branch information
bjaglin authored Feb 15, 2022
2 parents 35acc2e + 45a8d9c commit fff96c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import java.util.regex.Pattern

import pprint.TPrint
import scalafix.config.CustomMessage
import scalafix.config.Regex

class TPrintImplicits {
implicit val tprintPattern: TPrint[List[CustomMessage[Pattern]]] =
implicit val tprintPattern
: TPrint[List[CustomMessage[Either[Regex, Pattern]]]] =
TPrint.literal("List[Regex]")
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import java.util.regex.Pattern

import metaconfig.pprint._
import scalafix.config.CustomMessage
import scalafix.config.Regex

class TPrintImplicits {
implicit val tprintPattern: TPrint[List[CustomMessage[Pattern]]] =
new TPrint[List[CustomMessage[Pattern]]] {
implicit val tprintPattern
: TPrint[List[CustomMessage[Either[Regex, Pattern]]]] =
new TPrint[List[CustomMessage[Either[Regex, Pattern]]]] {
def render(implicit tpc: TPrintColors): fansi.Str =
fansi.Str("List[Regex]")
}
Expand Down

0 comments on commit fff96c2

Please sign in to comment.