Skip to content

Commit

Permalink
privilege:correct comments mistake (#3250)
Browse files Browse the repository at this point in the history
  • Loading branch information
louishust authored and tiancaiamao committed May 12, 2017
1 parent d6ec37b commit 04f9318
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion privilege/privilege.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (k keyType) String() string {

// Manager is the interface for providing privilege related operations.
type Manager interface {
// Show granted privileges for user.
// ShowGrants shows granted privileges for user.
ShowGrants(ctx context.Context, user string) ([]string, error)

// RequestVerification verifies user privilege for the request.
Expand Down
8 changes: 4 additions & 4 deletions privilege/privileges/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type userRecord struct {
Password string // max length 41
Privileges mysql.PrivilegeType

// Compiled from Host, cached for pattern match performance.
// patChars is compiled from Host, cached for pattern match performance.
patChars []byte
patTypes []byte
}
Expand All @@ -62,7 +62,7 @@ type dbRecord struct {
User string
Privileges mysql.PrivilegeType

// Compiled from Host, cached for pattern match performance.
// patChars is compiled from Host, cached for pattern match performance.
patChars []byte
patTypes []byte
}
Expand All @@ -77,7 +77,7 @@ type tablesPrivRecord struct {
TablePriv mysql.PrivilegeType
ColumnPriv mysql.PrivilegeType

// Compiled from Host, cached for pattern match performance.
// patChars is compiled from Host, cached for pattern match performance.
patChars []byte
patTypes []byte
}
Expand All @@ -91,7 +91,7 @@ type columnsPrivRecord struct {
Timestamp time.Time
ColumnPriv mysql.PrivilegeType

// Compiled from Host, cached for pattern match performance.
// patChars is compiled from Host, cached for pattern match performance.
patChars []byte
patTypes []byte
}
Expand Down

0 comments on commit 04f9318

Please sign in to comment.