Skip to content

Commit 494870b

Browse files
committed
fix more documentation comments
1 parent 832ed79 commit 494870b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Sources/BSD/Core/Extensions/Fileport.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,28 @@ extension BSD {
88
/// A Mach port representing a file descriptor.
99
public class Fileport: MachCore.Mach.Port {
1010

11-
// Initializes a fileport from a file descriptor.
11+
/// Initializes a fileport from a file descriptor.
1212
@available(macOS 11.0, *)
1313
public convenience init(fd: FileDescriptor) throws {
1414
try self.init(fd: Int32(fd.rawValue))
1515
}
1616

17-
// Initializes a fileport from a file descriptor.
17+
/// Initializes a fileport from a file descriptor.
1818
public convenience init(fd: Int32) throws {
1919
var portName = mach_port_name_t()
2020
try BSD.syscall(fileport_makeport(fd, &portName))
2121
self.init(named: portName)
2222
}
2323

24-
// Makes a file descriptor from a fileport.
25-
// - Note: This function will create a new file descriptor each time it is called.
24+
/// Makes a file descriptor from a fileport.
25+
/// - Note: This function will create a new file descriptor each time it is called.
2626
@available(macOS 11.0, *)
2727
func makeFD() throws -> FileDescriptor {
2828
return FileDescriptor(rawValue: try BSD.syscall(fileport_makefd(self.name)))
2929
}
3030

31-
// Makes a file descriptor from a fileport.
32-
// - Note: This function will create a new file descriptor each time it is called.
31+
/// Makes a file descriptor from a fileport.
32+
/// - Note: This function will create a new file descriptor each time it is called.
3333
func makeFD() throws -> Int32 {
3434
return try BSD.syscall(fileport_makefd(self.name))
3535
}

Sources/BSD/Core/Proc/Info.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ extension BSD {
134134
)
135135
}
136136

137-
// An extended ID for use with `proc_info_extended_id`.
137+
/// An extended ID for use with `proc_info_extended_id`.
138138
public struct ProcInfoExtendedID {
139139
/// The flag for the extended ID.
140140
let flag: ProcInfoExtendedIDFlag

Sources/BSD/Core/Proc/ListPIDs.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ extension BSD {
6262
/// The type of list.
6363
let type: ProcPIDListType
6464

65-
// The additional info for the list.
65+
/// The additional info for the list.
6666
let info: UInt32?
6767

6868
/// Creates a description of a list of PIDs.

0 commit comments

Comments
 (0)