Skip to content

Commit

Permalink
[parser] Correct typo: s/TslNone/TlsNone/ (#1270)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored and ti-chi-bot committed Oct 9, 2021
1 parent 2dce139 commit eca248c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions parser/ast/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ func (n *UserSpec) EncodedPassword() (string, bool) {
}

const (
TslNone = iota
TlsNone = iota
Ssl
X509
Cipher
Expand All @@ -1129,7 +1129,7 @@ type TLSOption struct {

func (t *TLSOption) Restore(ctx *format.RestoreCtx) error {
switch t.Type {
case TslNone:
case TlsNone:
ctx.WriteKeyWord("NONE")
case Ssl:
ctx.WriteKeyWord("SSL")
Expand Down
2 changes: 1 addition & 1 deletion parser/parser.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion parser/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -11857,7 +11857,7 @@ RequireClause:
"REQUIRE" "NONE"
{
t := &ast.TLSOption{
Type: ast.TslNone,
Type: ast.TlsNone,
}
$$ = []*ast.TLSOption{t}
}
Expand Down

0 comments on commit eca248c

Please sign in to comment.