소스 검색

Travis CI config updated and typo fixed.

Ri Xu 8 년 전
부모
커밋
76366fc1d9
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      .travis.yml
  2. 2 2
      styles.go

+ 1 - 1
.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)

+ 2 - 2
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)