We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9c8974 commit c563199Copy full SHA for c563199
docs/src/patterns/accept-loop.md
@@ -121,7 +121,7 @@ async fn accept_loop(addr: impl ToSocketAddrs) -> Result<()> {
121
let listener = TcpListener::bind(addr).await?;
122
let mut incoming = listener.incoming();
123
while let Some(result) = incoming.next().await {
124
- let stream = match stream {
+ let stream = match result {
125
Err(ref e) if is_connection_error(e) => continue, // 1
126
Err(e) => {
127
eprintln!("Error: {}. Pausing for 500ms."); // 3
0 commit comments