Skip to content

Commit

Permalink
Fix function comments based on best practices from Effective Go
Browse files Browse the repository at this point in the history
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
  • Loading branch information
CodeLingoBot authored and yaa110 committed Mar 15, 2019
1 parent ef1f190 commit 309c19b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ptime.go
Expand Up @@ -182,7 +182,7 @@ func Afghanistan() *time.Location {
return loc
}

// Returns t in RFC3339Nano format.
// String returns t in RFC3339Nano format.
func (t Time) String() string {
return t.Format("yyyy-MM-ddTHH:mm:ss.nsZ")
}
Expand All @@ -192,12 +192,12 @@ func (m Month) Dari() string {
return dmonths[m-1]
}

// Returns the Persian name of the month.
// String returns the Persian name of the month.
func (m Month) String() string {
return months[m-1]
}

// Returns the Persian name of the day in week.
// String returns the Persian name of the day in week.
func (d Weekday) String() string {
return days[d]
}
Expand All @@ -207,7 +207,7 @@ func (d Weekday) Short() string {
return sdays[d]
}

// Returns the Persian name of 12-Hour marker.
// String returns the Persian name of 12-Hour marker.
func (a AmPm) String() string {
return amPm[a]
}
Expand Down

0 comments on commit 309c19b

Please sign in to comment.