Skip to content

Commit

Permalink
fix NewV6WithTime doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nicumicle committed Oct 19, 2024
1 parent a469771 commit 11c3471
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions version6.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ func NewV6() (UUID, error) {
// NewV6WithTime returns a Version 6 UUID based on the current NodeID, clock
// sequence, and a specified time. It is similar to the NewV6 function, but allows
// you to specify the time. If time is passed as nil, then the current time is used.
//
// There is a limit on how many UUIDs can be generated for the same time, so if you
// are generating multiple UUIDs, it is recommended to increment the time
// If getTime fails to return the current NewV6 returns Nil and an error.
// are generating multiple UUIDs, it is recommended to increment the time.
// If getTime fails to return the current NewV6WithTime returns Nil and an error.
func NewV6WithTime(customTime *time.Time) (UUID, error) {
now, seq, err := getTime(customTime)
if err != nil {
Expand Down

0 comments on commit 11c3471

Please # to comment.