Skip to content

Commit

Permalink
docs: fix commant
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfogre committed Jan 15, 2021
1 parent 61d08b2 commit 340b11f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/generate/gen_x_seq.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (v {{.Name}}) IsZero() bool {
return v.Value == 0 && v.Time.IsZero()
}

// IsZero return if time and value are both equal
// Equal return if time and value are both equal
func (v {{.Name}}) Equal(n {{.Name}}) bool {
return v.Value == n.Value && v.Time.Equal(n.Time)
}
Expand Down Expand Up @@ -206,7 +206,7 @@ func (s *{{.Name}}Seq) Max() {{.Name}} {
return max
}

// Max return the element with min value, return zero if empty
// Min return the element with min value, return zero if empty
func (s *{{.Name}}Seq) Min() {{.Name}} {
var min {{.Name}}
found := false
Expand Down

0 comments on commit 340b11f

Please sign in to comment.