Skip to content

Commit 108ac70

Browse files
committed
Fix minor comment.
1 parent 049f699 commit 108ac70

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

PythonKit/Python.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,11 +1584,10 @@ extension PythonFunction : PythonConvertible {
15841584
}
15851585
}
15861586

1587-
// The pointers here technically constitute a leak, but no more than
1588-
// a static string or a static struct definition at top level.
15891587
fileprivate extension PythonFunction {
15901588
static let sharedFunctionName: UnsafePointer<Int8> = {
15911589
let name: StaticString = "pythonkit_swift_function"
1590+
// `utf8Start` is a property of StaticString, thus, it has a stable pointer.
15921591
return UnsafeRawPointer(name.utf8Start).assumingMemoryBound(to: Int8.self)
15931592
}()
15941593

@@ -1661,4 +1660,3 @@ struct PyMethodDef {
16611660
/// The __doc__ attribute, or NULL
16621661
public var ml_doc: UnsafePointer<Int8>?
16631662
}
1664-
>>>>>>> Squashed commit of the following:

0 commit comments

Comments
 (0)