Skip to content

Commit

Permalink
Fix spelling.
Browse files Browse the repository at this point in the history
  • Loading branch information
snofla committed Aug 16, 2023
1 parent 06a88b9 commit b2e0679
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions Sources/UInt128/UUID+UInt128.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extension UUID {
/// 128 bits, no truncation occurs.
public init(_ longInt: UInt128) {
let lowerBits = longInt.value.lowerBits
let upperBita = longInt.value.upperBits
let upperBits = longInt.value.upperBits
let val: uuid_t = (
UInt8((lowerBits >> (0 * 8)) & 0xFF),
UInt8((lowerBits >> (1 * 8)) & 0xFF),
Expand All @@ -35,14 +35,14 @@ extension UUID {
UInt8((lowerBits >> (5 * 8)) & 0xFF),
UInt8((lowerBits >> (6 * 8)) & 0xFF),
UInt8((lowerBits >> (7 * 8)) & 0xFF),
UInt8((upperBita >> (0 * 8)) & 0xFF),
UInt8((upperBita >> (1 * 8)) & 0xFF),
UInt8((upperBita >> (2 * 8)) & 0xFF),
UInt8((upperBita >> (3 * 8)) & 0xFF),
UInt8((upperBita >> (4 * 8)) & 0xFF),
UInt8((upperBita >> (5 * 8)) & 0xFF),
UInt8((upperBita >> (6 * 8)) & 0xFF),
UInt8((upperBita >> (7 * 8)) & 0xFF)
UInt8((upperBits >> (0 * 8)) & 0xFF),
UInt8((upperBits >> (1 * 8)) & 0xFF),
UInt8((upperBits >> (2 * 8)) & 0xFF),
UInt8((upperBits >> (3 * 8)) & 0xFF),
UInt8((upperBits >> (4 * 8)) & 0xFF),
UInt8((upperBits >> (5 * 8)) & 0xFF),
UInt8((upperBits >> (6 * 8)) & 0xFF),
UInt8((upperBits >> (7 * 8)) & 0xFF)
)
self = .init(uuid: val)
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/UInt128Tests/UInt128PerformanceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ final class CustomStringConvertiblePerformanceTests: XCTestCase {

final class UUIDConvertibalePerformanceTests: XCTestCase {

func testUUIDPlus() {
func testUUIDConversion() {
let uuid = UUID(uuidString: "1F349019-F3F5-489F-85F5-9CD214D6BD69")!
let options = XCTMeasureOptions()
options.iterationCount = 1000
Expand Down

0 comments on commit b2e0679

Please sign in to comment.