Browse Source

Changed the comments for go vet

uppfinnarn 8 years ago
parent
commit
a223abd357
1 changed files with 2 additions and 2 deletions
  1. 2 2
      types.go

+ 2 - 2
types.go

@@ -13,11 +13,11 @@ import (
 	"time"
 )
 
-// A timestamp, in the format YYYY-MM-DDTHH:MM:SS.MSMSMS-TZ:TZ.
+// Timestamp stores a timestamp, as sent by the Discord API.
 type Timestamp string
 
 // Parse parses a timestamp string into a time.Time object.
-// The only time this can fail is if you're parsing an invalid timestamp.
+// The only time this can fail is if Discord changes their timestamp format.
 func (t Timestamp) Parse() (time.Time, error) {
 	return time.Parse("2006-01-02T15:04:05.000000-07:00", string(t))
 }