Closed rawrmonstar closed 4 years ago
This is good feedback. stream
and hello_world
are the same variables. We should make that abundantly clear.
I think this is clearer with Rust async / await syntax. This example got rewritten to remove this problem in the migration to 0.2, so closing this issue
Hi I'm trying to learn Tokio right now and I've started to go through the documentation. Something that I found confusing in the Getting Started - Hello World - Creating the stream section. The first code block in the section is:
and it's shortly followed up with another code block:
To me, it seems like the
stream
variable in the first block is not actually used anywhere, is that correct? If so, I think the// Following snippets come here...
comment is a bit misleading 🤔