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

docs(io): swap reader/writer in simplex doc test #7176

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

KyleCotton
Copy link
Contributor

Swap the reader and writer in the simplex documentation test to match the API.

Fixes: #7175

Motivation

Fixes the doctest for simplex as discussed in #7175 i.e. the reader and writer being swapped.

Solution

Simple fix for this one - just swap the variables names to match their type in the destructuring.

Swap the `reader` and `writer` in the `simplex` documentation test to
match the API.

Fixes: tokio-rs#7175
@Darksonn Darksonn added A-tokio Area: The main tokio crate M-io Module: tokio/io labels Feb 25, 2025
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@Darksonn Darksonn enabled auto-merge (squash) February 25, 2025 14:34
@Darksonn Darksonn merged commit c853991 into tokio-rs:master Feb 25, 2025
92 checks passed
@KyleCotton KyleCotton deleted the docs/simplex-example branch February 25, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-io Module: tokio/io
Projects
None yet
Development

Successfully merging this pull request may close these issues.

simplex doctest has reader/writer swapped
2 participants