From 5a46627f0d5b4aac3a14a9c606c155395da002f3 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 23 Oct 2019 04:41:15 +0300 Subject: [PATCH] Updated fmt.Printf to use the correct count of arguments --- blog_comment.go | 2 +- cmd/ephemeris/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blog_comment.go b/blog_comment.go index ed5b3de..4e45962 100644 --- a/blog_comment.go +++ b/blog_comment.go @@ -15,7 +15,7 @@ import ( // blog post. type BlogComment struct { - // Author holds the name of the comment-submitter + // Author holds the name of the comment-submitter. Author string // Body holds the body of the comment. diff --git a/cmd/ephemeris/main.go b/cmd/ephemeris/main.go index 8d02d54..43ea335 100644 --- a/cmd/ephemeris/main.go +++ b/cmd/ephemeris/main.go @@ -764,7 +764,7 @@ func main() { var err error config, err = loadConfig(*confFile) if err != nil { - fmt.Printf("Failed to load configuration file %s %s\n", err.Error()) + fmt.Printf("Failed to load configuration file %s %s\n", *confFile, err.Error()) return }