From a40801deadefe9e3012a6913f9f07b5594027aa8 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Fri, 11 Jan 2019 14:01:35 +0100 Subject: [PATCH] cmd/swarm/swarm-snapshot: change comment wording --- cmd/swarm/swarm-snapshot/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/swarm/swarm-snapshot/create.go b/cmd/swarm/swarm-snapshot/create.go index 155b612590..fa5a6629d9 100644 --- a/cmd/swarm/swarm-snapshot/create.go +++ b/cmd/swarm/swarm-snapshot/create.go @@ -143,7 +143,7 @@ func createSnapshot(filename string, nodes int, services []string) (err error) { func touchPath(filename string) (string, error) { if path.IsAbs(filename) { if _, err := os.Stat(filename); err == nil { - // path exists, we will override the file + // path exists, we will overwrite the file return filename, nil } } @@ -156,7 +156,7 @@ func touchPath(filename string) (string, error) { _, err = os.Stat(path.Join(dir, filename)) if err == nil { - // path exists, we will override + // path exists, we will overwrite return filename, nil }