From 11c34712e8d27d3f9d766b9ee57cd3f839dcc2a1 Mon Sep 17 00:00:00 2001 From: nicumicle <20170987+nicumicleI@users.noreply.github.com> Date: Sat, 19 Oct 2024 07:52:09 +0200 Subject: [PATCH] fix NewV6WithTime doc comment --- version6.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/version6.go b/version6.go index 9be491c..17bbafe 100644 --- a/version6.go +++ b/version6.go @@ -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 {