Skip to content
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

Mention futures create right before before it is needed #807

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdevino
Copy link

@mdevino mdevino commented Dec 19, 2024

I was just following the Tokio tutorial and notice that, in the Async in depth section, the futures crate is mentioned before there are instructions to add it to Cargo.toml.

First occurrence:
image

But is only mentioned later in the tutorial:
image

This PR slightly changes the tutorial, so that the cargo add instructions are shown before the crate first usage.

Please let me know if further adjustments would be needed.

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