Skip to content

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

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

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

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