From 498dad214dde11b5eddb0a30116ef580a06fe455 Mon Sep 17 00:00:00 2001 From: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> Date: Wed, 8 Jan 2025 08:48:30 +0200 Subject: [PATCH] fix comment Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> --- go/vt/schemadiff/key.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/schemadiff/key.go b/go/vt/schemadiff/key.go index 910deff7874..97f3af1630c 100644 --- a/go/vt/schemadiff/key.go +++ b/go/vt/schemadiff/key.go @@ -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 {