Skip to content

Commit

Permalink
Merge pull request dlclark#29 from eclipseo/fix_conversion_int_to_string
Browse files Browse the repository at this point in the history
Go 1.15: Convert int to string using rune()
  • Loading branch information
dlclark committed Aug 23, 2020
2 parents 74bac81 + 6638ef7 commit f48b8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regexp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ func TestHexadecimalCurlyBraces(t *testing.T) {
}

re = MustCompile(`\x{0010ffff}`, 0)
if m, err := re.MatchString(string(0x10ffff)); err != nil {
if m, err := re.MatchString(string(rune(0x10ffff))); err != nil {
t.Fatalf("Unexpected err: %v", err)
} else if !m {
t.Fatalf("Expected match")
Expand Down

0 comments on commit f48b8c1

Please sign in to comment.