From 76366fc1d9fe5d0a25d364c917597d4ac62f3b18 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Fri, 1 Dec 2017 16:31:27 +0800 Subject: [PATCH] Travis CI config updated and typo fixed. --- .travis.yml | 2 +- styles.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8285809..f4e5c0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ go: script: - go vet ./... - - go test -v -coverprofile=coverage.txt -covermode=atomic + - go test ./... -v -coverprofile=coverage.txt -covermode=atomic after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/styles.go b/styles.go index 47f34a5..87bca13 100644 --- a/styles.go +++ b/styles.go @@ -952,8 +952,8 @@ func parseTime(i int, v string) string { {"%%%%", "January"}, {"&&&&", "Monday"}, } - // It is the presence of the "am/pm" indicator that determins if this is a - // 12 hour or 24 hours time format, not the number of 'h' characters. + // It is the presence of the "am/pm" indicator that determines if this is + // a 12 hour or 24 hours time format, not the number of 'h' characters. if is12HourTime(format) { format = strings.Replace(format, "hh", "03", 1) format = strings.Replace(format, "h", "3", 1)