Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

docs: Refine the example comments for Router::route_service()#3410

Open
unixzii wants to merge 1 commit intotokio-rs:mainfrom
unixzii:cyan/doc-fix
Open

docs: Refine the example comments for Router::route_service()#3410
unixzii wants to merge 1 commit intotokio-rs:mainfrom
unixzii:cyan/doc-fix

Conversation

@unixzii
Copy link

@unixzii unixzii commented Jul 16, 2025

Motivation

Comments in the example code of Router::route_service() might be confusing. axum::body::BoxBody is not a public item and the description of what axum::routing::any_service does also seems inaccurate.

Solution

The PR fixes some factual errors and clarifies the purpose of axum::routing::any_service.

This should fix #2536.

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.

Router::route_service() example code is out of date

1 participant

Comments