Skip to content

Commit

Permalink
Replace a couple of sprintf calls in printVerses with interpolated st…
Browse files Browse the repository at this point in the history
…rings
  • Loading branch information
Numpsy committed Jul 21, 2024
1 parent 9fe60dc commit 6bd75f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Expecto/Expect.fs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ let private printVerses (firstName:string) first (secondName:string) second =
if first.Length > 100 || second.Length > 100
|| Seq.exists ((=)'\n') first || Seq.exists ((=)'\n') second
then '\n' else ' '
let first = sprintf "\n%s:%c%s" firstName prefix first
let second = sprintf "\n%s:%c%s" secondName prefix second
let first = $"\n%s{firstName}:%c{prefix}%s{first}"
let second = $"\n%s{secondName}:%c{prefix}%s{second}"
let diffs = allDiffs first second
String.Concat(highlightAllGreen diffs first, highlightAllRed diffs second)

Expand Down

0 comments on commit 6bd75f9

Please sign in to comment.