Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Jan 8, 2025
1 parent 4970ff6 commit 498dad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/schemadiff/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (i *IndexDefinitionEntity) IsUnique() bool {
return i.IndexDefinition.Info.IsUnique()
}

// IsUnique returns true if the index uses an expression, e.g. `KEY idx1 ((id + 1))`.
// HasExpression returns true if the index uses an expression, e.g. `KEY idx1 ((id + 1))`.
func (i *IndexDefinitionEntity) HasExpression() bool {
for _, col := range i.IndexDefinition.Columns {
if col.Expression != nil {
Expand Down

0 comments on commit 498dad2

Please sign in to comment.