Skip to content

Commit

Permalink
net: fix typo in miri comment (#7063)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiif authored Jan 3, 2025
1 parent e066431 commit 7be2bfa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tokio/src/net/unix/datagram/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ cfg_net_unix! {
///
/// Using unnamed sockets, created as a pair
/// ```
/// # if cfg!(miri) { return } // No `socketpair` in miri.
/// # if cfg!(miri) { return } // No SOCK_DGRAM for `socketpair` in miri.
/// # use std::error::Error;
/// # #[tokio::main]
/// # async fn main() -> Result<(), Box<dyn Error>> {
Expand Down Expand Up @@ -406,7 +406,7 @@ impl UnixDatagram {
///
/// # Examples
/// ```
/// # if cfg!(miri) { return } // No SOCK_DGRAM for socketpair in miri.
/// # if cfg!(miri) { return } // No SOCK_DGRAM for `socketpair` in miri.
/// # use std::error::Error;
/// # #[tokio::main]
/// # async fn main() -> Result<(), Box<dyn Error>> {
Expand Down Expand Up @@ -611,7 +611,7 @@ impl UnixDatagram {
///
/// # Examples
/// ```
/// # if cfg!(miri) { return } // No `socketpair` in miri.
/// # if cfg!(miri) { return } // No SOCK_DGRAM for `socketpair` in miri.
/// # use std::error::Error;
/// # #[tokio::main]
/// # async fn main() -> Result<(), Box<dyn Error>> {
Expand Down Expand Up @@ -742,7 +742,7 @@ impl UnixDatagram {
///
/// # Examples
/// ```
/// # if cfg!(miri) { return } // No `socketpair` in miri.
/// # if cfg!(miri) { return } // No SOCK_DGRAM for `socketpair` in miri.
/// # use std::error::Error;
/// # #[tokio::main]
/// # async fn main() -> Result<(), Box<dyn Error>> {
Expand Down Expand Up @@ -1010,7 +1010,7 @@ impl UnixDatagram {
///
/// # Examples
/// ```
/// # if cfg!(miri) { return } // No `socketpair` in miri.
/// # if cfg!(miri) { return } // No SOCK_DGRAM for `socketpair` in miri.
/// # use std::error::Error;
/// # #[tokio::main]
/// # async fn main() -> Result<(), Box<dyn Error>> {
Expand Down Expand Up @@ -1503,7 +1503,7 @@ impl UnixDatagram {
///
/// For an unbound peer
/// ```
/// # if cfg!(miri) { return } // No `socketpair` in miri.
/// # if cfg!(miri) { return } // No SOCK_DGRAM for `socketpair` in miri.
/// # use std::error::Error;
/// # #[tokio::main]
/// # async fn main() -> Result<(), Box<dyn Error>> {
Expand Down Expand Up @@ -1553,7 +1553,7 @@ impl UnixDatagram {
///
/// # Examples
/// ```
/// # if cfg!(miri) { return } // No `socketpair` in miri.
/// # if cfg!(miri) { return } // No SOCK_DGRAM for `socketpair` in miri.
/// # use std::error::Error;
/// # #[tokio::main]
/// # async fn main() -> Result<(), Box<dyn Error>> {
Expand Down

0 comments on commit 7be2bfa

Please sign in to comment.