summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-11-18 02:49:24 +0000
committerGitHub <noreply@github.com>2021-11-18 02:49:24 +0000
commit94cbb66823ec77142e27a59713954a735248895d (patch)
tree8bc5931319457157c3f946b40a754777875ca9dd
parent10c2a3b0b421809e4d08913612de50f3e7d661cb (diff)
parent64e1860c3e497695b5d3f454b520db22b2fc48cc (diff)
downloadnix-94cbb66823ec77142e27a59713954a735248895d.zip
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>
-rw-r--r--src/unistd.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unistd.rs b/src/unistd.rs
index a9862d37..2c89d772 100644
--- a/src/unistd.rs
+++ b/src/unistd.rs
@@ -1075,10 +1075,10 @@ pub fn pipe() -> std::result::Result<(RawFd, RawFd), Error> {
/// The following flags are supported, and will be set atomically as the pipe is
/// created:
///
-/// `O_CLOEXEC`: Set the close-on-exec flag for the new file descriptors.
-#[cfg_attr(target_os = "linux", doc = "`O_DIRECT`: Create a pipe that performs I/O in \"packet\" mode. ")]
-#[cfg_attr(target_os = "netbsd", doc = "`O_NOSIGPIPE`: Return `EPIPE` instead of raising `SIGPIPE`. ")]
-/// `O_NONBLOCK`: Set the non-blocking flag for the ends of the pipe.
+/// - `O_CLOEXEC`: Set the close-on-exec flag for the new file descriptors.
+#[cfg_attr(target_os = "linux", doc = "- `O_DIRECT`: Create a pipe that performs I/O in \"packet\" mode.")]
+#[cfg_attr(target_os = "netbsd", doc = "- `O_NOSIGPIPE`: Return `EPIPE` instead of raising `SIGPIPE`.")]
+/// - `O_NONBLOCK`: Set the non-blocking flag for the ends of the pipe.
///
/// See also [pipe(2)](https://man7.org/linux/man-pages/man2/pipe.2.html)
#[cfg(any(target_os = "android",