fix spelling mistakes (#3364)

Automatically submitted.
This commit is contained in:
yuxiaobo96 2019-10-09 15:24:18 +08:00 committed by corbot[bot]
parent 65458b2de2
commit bf356e79fc
7 changed files with 8 additions and 8 deletions

View file

@ -285,7 +285,7 @@ func TestMaybeUnescape(t *testing.T) {
// 3. Escaped dot, 'a' and a hyphen. No idea why but we'll allow it.
{escaped: `weird\\055ex\\141mple\\056com\\056\\056`, want: "weird-example.com.."},
// 4. escaped `*` in the middle - NOT OK.
{escaped: `e\\052ample.com`, wantErr: errors.New("`*' ony supported as wildcard (leftmost label)")},
{escaped: `e\\052ample.com`, wantErr: errors.New("`*' only supported as wildcard (leftmost label)")},
// 5. Invalid character.
{escaped: `\\000.example.com`, wantErr: errors.New(`invalid character: \\000`)},
// 6. Invalid escape sequence in the middle.