-
Notifications
You must be signed in to change notification settings - Fork 339
Fix a-chat tutorial issues #573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Trimming was done twice on messages, so one of the two instances can be removed. I personally think removing the first instance, in which we are splitting names from messages makes the code more readable than removing the second instance, but other examples further in the tutorial show the second instance removed.
Readers couldn't see the `use` lines corresponding to these two structures.
…y lines The empty lines translate to the output making it look weird.
We were happy to return an Err variant from the broker_handle before and nothing has changed in this regard, so bubbling it up to run().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thank you for submitting the PR! :) I'm leaving a few comments inline but otherwise this looks great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarifying, everything you say sounds good to me.
These fix a few typos and grammar issues as well as minor things in the code as presented, such as slightly wrong bounds, calling twice
trim
, or wrong or missing use clauses as the tutorial advances.