Skip to content

Commit 7b2e241

Browse files
committed
Update comment
1 parent 6db3728 commit 7b2e241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validators/uuid.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ impl Validator for UuidValidator {
140140
}
141141
let uuid = self.get_uuid(input)?;
142142
// This block checks if the UUID version matches the expected version and
143-
// if the UUID variant conforms to RFC 4122. When dealing with Python inputs,
144-
// UUIDs must adhere to RFC 4122 standards.
143+
// if the UUID variant conforms to RFC 9562 (superseding RFC 4122).
144+
// When dealing with Python inputs, UUIDs must adhere to RFC 9562 standards.
145145
if let Some(expected_version) = self.version {
146146
if uuid.get_version_num() != expected_version || uuid.get_variant() != Variant::RFC4122 {
147147
return Err(ValError::new(

0 commit comments

Comments
 (0)