Skip to content

Commit f2649f2

Browse files
committed
PR Feedback: make PTrace.init fileprivate
1 parent 6381de4 commit f2649f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/swift-inspect/Sources/SwiftInspectLinux/PTrace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public struct PTrace: ~Copyable {
3232
// it to stop, and leaves it in a stopped state. The caller may resume the
3333
// process by calling cont().
3434
// NOTE: clients must use withPTracedProcess instead of direct initialization.
35-
init(_ pid: pid_t) throws {
35+
fileprivate init(_ pid: pid_t) throws {
3636
guard ptrace_attach(pid) != -1 else {
3737
throw PTraceError.operationFailure(PTRACE_ATTACH, pid: pid)
3838
}

0 commit comments

Comments
 (0)