fix(tcp): remove redundant format! macro call
This commit is contained in:
parent
502cb6f4b9
commit
081e222d99
1 changed files with 1 additions and 1 deletions
|
|
@ -869,7 +869,7 @@ impl TcpListener {
|
|||
/// use std::net::{TcpListener, TcpStream};
|
||||
///
|
||||
/// fn listen_on(port: u16) -> impl Iterator<Item = TcpStream> {
|
||||
/// let listener = TcpListener::bind(format!("127.0.0.1:{port}")).unwrap();
|
||||
/// let listener = TcpListener::bind(("127.0.0.1", port)).unwrap();
|
||||
/// listener.into_incoming()
|
||||
/// .filter_map(Result::ok) /* Ignore failed connections */
|
||||
/// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue