From 009a8b8bce6156259acfe05aa2eefe6f4ce5802e Mon Sep 17 00:00:00 2001 From: aoright <102943475+aoright@users.noreply.github.com> Date: Thu, 20 Aug 2026 14:38:40 +0800 Subject: [PATCH] docs: fix spacing and grammar in doc comments Signed-off-by: aoright <102943475+aoright@users.noreply.github.com> --- doc.go | 2 +- uuid.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc.go b/doc.go index 6c2ab76..998857d 100644 --- a/doc.go +++ b/doc.go @@ -4,7 +4,7 @@ // Package uuid generates and inspects UUIDs. // -// UUIDs are based on RFC 9562(obsoletes RFC 4122) and DCE 1.1: Authentication and Security +// UUIDs are based on RFC 9562 (obsoletes RFC 4122) and DCE 1.1: Authentication and Security // Services. // // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to diff --git a/uuid.go b/uuid.go index dc75cee..6148a44 100644 --- a/uuid.go +++ b/uuid.go @@ -28,13 +28,13 @@ type Variant byte // Constants returned by Variant. const ( Invalid = Variant(iota) // Invalid UUID - RFC4122 // The variant specified in RFC9562(obsoletes RFC4122). + RFC4122 // The variant specified in RFC 9562 (obsoletes RFC 4122). Reserved // Reserved, NCS backward compatibility. Microsoft // Reserved, Microsoft Corporation backward compatibility. Future // Reserved for future definition. ) -// RFC9562 added V6 and V7 of UUID, but did not change specification of V1 and V4 +// RFC 9562 added V6 and V7 of UUID, but did not change the specification of V1 and V4 // implemented in this module. To avoid creating new major module version, // we still use RFC4122 for constant name. const Standard = RFC4122 @@ -78,7 +78,7 @@ func (e invalidLengthError) Is(target error) bool { var ErrInvalidLength = invalidLengthError{} -// IsInvalidLengthError is matcher function for custom error invalidLengthError +// IsInvalidLengthError is a matcher function for custom error invalidLengthError. func IsInvalidLengthError(err error) bool { return errors.Is(err, ErrInvalidLength) }