Skip to content

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

Merged
9 commits merged into from
Nov 21, 2019
Merged

Fix a-chat tutorial issues #573

9 commits merged into from
Nov 21, 2019

Conversation

unleashed
Copy link
Contributor

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.

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().
Copy link

@ghost ghost left a 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.

Copy link

@ghost ghost left a 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.

@ghost ghost merged commit ba1ee2d into async-rs:master Nov 21, 2019
@unleashed unleashed deleted the fix-tutorial-issues branch November 21, 2019 17:04
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant