Skip to content

Commit 94cbb66

Browse files
Merge #1589
1589: Fix documentation formating for pipe2 r=asomers a=rusty-snake Co-authored-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
2 parents 10c2a3b + 64e1860 commit 94cbb66

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unistd.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,10 +1075,10 @@ pub fn pipe() -> std::result::Result<(RawFd, RawFd), Error> {
10751075
/// The following flags are supported, and will be set atomically as the pipe is
10761076
/// created:
10771077
///
1078-
/// `O_CLOEXEC`: Set the close-on-exec flag for the new file descriptors.
1079-
#[cfg_attr(target_os = "linux", doc = "`O_DIRECT`: Create a pipe that performs I/O in \"packet\" mode. ")]
1080-
#[cfg_attr(target_os = "netbsd", doc = "`O_NOSIGPIPE`: Return `EPIPE` instead of raising `SIGPIPE`. ")]
1081-
/// `O_NONBLOCK`: Set the non-blocking flag for the ends of the pipe.
1078+
/// - `O_CLOEXEC`: Set the close-on-exec flag for the new file descriptors.
1079+
#[cfg_attr(target_os = "linux", doc = "- `O_DIRECT`: Create a pipe that performs I/O in \"packet\" mode.")]
1080+
#[cfg_attr(target_os = "netbsd", doc = "- `O_NOSIGPIPE`: Return `EPIPE` instead of raising `SIGPIPE`.")]
1081+
/// - `O_NONBLOCK`: Set the non-blocking flag for the ends of the pipe.
10821082
///
10831083
/// See also [pipe(2)](https://man7.org/linux/man-pages/man2/pipe.2.html)
10841084
#[cfg(any(target_os = "android",

0 commit comments

Comments
 (0)