From 637afd359bf9d0b0448d36757eb5a4fec788d9ff Mon Sep 17 00:00:00 2001 From: L2ncE Date: Wed, 15 Jun 2022 23:19:12 +0800 Subject: [PATCH] Fix a syntax error in a code comment Signed-off-by: L2ncE --- server/etcdserver/api/snap/snapshotter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/etcdserver/api/snap/snapshotter.go b/server/etcdserver/api/snap/snapshotter.go index f804ae9b6..9e9622900 100644 --- a/server/etcdserver/api/snap/snapshotter.go +++ b/server/etcdserver/api/snap/snapshotter.go @@ -242,7 +242,7 @@ func checkSuffix(lg *zap.Logger, names []string) []string { snaps = append(snaps, names[i]) } else { // If we find a file which is not a snapshot then check if it's - // a vaild file. If not throw out a warning. + // a valid file. If not throw out a warning. if _, ok := validFiles[names[i]]; !ok { if lg != nil { lg.Warn("found unexpected non-snap file; skipping", zap.String("path", names[i]))