@@ -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 }
0 commit comments