mirror of
https://github.com/apple/swift-system
synced 2026-11-22 04:30:46 +00:00
Fix some doc-comments
This commit is contained in:
1 parent
4966bcbf8b
commit
0d9e29baa0
2 files changed
+5
-4
No files matched your search
@@ -75,6 +75,7 @@ struct FileDescriptor {
|
||||
/// Pass `false` to try only once and throw an error upon interruption.
|
||||
/// - Returns: The new file descriptor.
|
||||
///
|
||||
/// If the `target` descriptor is the same as `self`, then EINVAL is thrown.
|
||||
/// If the `target` descriptor is already in use, then it is first
|
||||
/// deallocated as if a close(2) call had been done first.
|
||||
///
|
||||
|
||||
@@ -415,7 +415,7 @@ extension FileDescriptor {
|
||||
/// Pass `false` to try only once and throw an error upon interruption.
|
||||
/// - Returns: The new file descriptor.
|
||||
///
|
||||
/// If the `target` descriptor the same as `self`, then EINVAL is thrown.
|
||||
/// If the `target` descriptor is the same as `self`, then EINVAL is thrown.
|
||||
/// If the `target` descriptor is already in use, then it is first
|
||||
/// deallocated as if a close(2) call had been done first.
|
||||
///
|
||||
@@ -524,9 +524,9 @@ extension FileDescriptor {
|
||||
/// interprocess communication.
|
||||
///
|
||||
/// NOTE: This overload called with an empty option set is not necessarily
|
||||
/// equivalent to calling the overload with no options. On Windows, this
|
||||
/// overload with empty options disables the `closeOnExec` behaviour,
|
||||
/// which is enabled by the overload without options.
|
||||
/// equivalent to calling the overload with no options. On Windows, the
|
||||
/// no-parameter `pipe()` overload enables the `.closeOnExec` behaviour,
|
||||
/// but this overload disables it when called with an empty option set.
|
||||
///
|
||||
/// - Parameters:
|
||||
/// - options: The behavior for creating the pipe.
|
||||
|
||||
Reference in new issue
Block a user