We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17534cf commit 85b80cfCopy full SHA for 85b80cf
docs/src/tutorial/implementing_a_client.md
@@ -39,14 +39,14 @@ async fn try_run(addr: impl ToSocketAddrs) -> Result<()> {
39
let mut lines_from_stdin = BufReader::new(stdin()).lines().fuse(); // 2
40
loop {
41
select! { // 3
42
- line = lines_from_server.next() => match line {
+ line = lines_from_server.next().fuse() => match line {
43
Some(line) => {
44
let line = line?;
45
println!("{}", line);
46
},
47
None => break,
48
49
- line = lines_from_stdin.next() => match line {
+ line = lines_from_stdin.next().fuse() => match line {
50
51
52
writer.write_all(line.as_bytes()).await?;
0 commit comments