Skip to content

Commit 96cc29c

Browse files
committed
Fix code comment
1 parent ffde843 commit 96cc29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/UUID.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public struct UUID : Hashable, Equatable, CustomStringConvertible, Sendable {
9292
var secondBits = second
9393

9494
// Set the version to 4 (0100 in binary)
95-
firstBits &= 0xFFFFFFFFFFFF0FFF // Clear the last 12 bits
95+
firstBits &= 0xFFFFFFFFFFFF0FFF // Clear bits 48 through 51
9696
firstBits |= 0x0000000000004000 // Set the version bits to '0100' at the correct position
9797

9898
// Set the variant to '10' (RFC9562 variant)

0 commit comments

Comments
 (0)