Skip to content

Commit

Permalink
typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
xuri committed Aug 21, 2021
1 parent 5537e84 commit fd47cc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions calc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6181,7 +6181,7 @@ func strToTimePatternHandler1(submatch []string) (h, m int, s float64, err error
}

// strToTimePatternHandler2 parse and convert the given string in pattern
// hh to the time.
// hh:mm to the time.
func strToTimePatternHandler2(submatch []string) (h, m int, s float64, err error) {
if h, err = strconv.Atoi(submatch[0]); err != nil {
return
Expand All @@ -6191,7 +6191,7 @@ func strToTimePatternHandler2(submatch []string) (h, m int, s float64, err error
}

// strToTimePatternHandler3 parse and convert the given string in pattern
// hh to the time.
// mm:ss to the time.
func strToTimePatternHandler3(submatch []string) (h, m int, s float64, err error) {
if m, err = strconv.Atoi(submatch[0]); err != nil {
return
Expand All @@ -6201,7 +6201,7 @@ func strToTimePatternHandler3(submatch []string) (h, m int, s float64, err error
}

// strToTimePatternHandler4 parse and convert the given string in pattern
// hh to the time.
// hh:mm:ss to the time.
func strToTimePatternHandler4(submatch []string) (h, m int, s float64, err error) {
if h, err = strconv.Atoi(submatch[0]); err != nil {
return
Expand Down

0 comments on commit fd47cc3

Please sign in to comment.