Skip to content

Commit 2203872

Browse files
authored
$0 -> valPtr
1 parent dd4eab6 commit 2203872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/UUID.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public struct UUID : ReferenceConvertible, Hashable, Equatable, CustomStringConv
6262
/// Returns a string created from the UUID, such as "E621E1F8-C36C-495A-93FC-0C247A3E6E5F"
6363
public var uuidString: String {
6464
var bytes: uuid_string_t = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
65-
return withUnsafePointer(to: uuid) {
65+
return withUnsafePointer(to: uuid) { valPtr in
6666
valPtr.withMemoryRebound(to: UInt8.self, capacity: MemoryLayout<uuid_t>.size) { val in
6767
withUnsafeMutablePointer(to: &bytes) { strPtr in
6868
strPtr.withMemoryRebound(to: CChar.self, capacity: MemoryLayout<uuid_string_t>.size) { str in

0 commit comments

Comments
 (0)