mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Fix
This commit is contained in:
@@ -283,7 +283,7 @@ more flexibility and allows us to change internal implementations without
|
||||
breaking the public API.
|
||||
|
||||
For example that means while [`Json`] is implemented using [`serde_json`] it
|
||||
doesn't directly expose the [`serde_json::Error`] thats contained in
|
||||
doesn't directly expose the [`serde_json::Error`] that's contained in
|
||||
[`JsonRejection::JsonDataError`]. However it is still possible to access via
|
||||
methods from [`std::error::Error`]:
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ use super::rejection::NestedPathRejection;
|
||||
/// let api = Router::new().route(
|
||||
/// "/users",
|
||||
/// get(|path: NestedPath| async move {
|
||||
/// // `path` will be "/api" because thats what this
|
||||
/// // `path` will be "/api" because that's what this
|
||||
/// // router is nested at when we build `app`
|
||||
/// let path = path.as_str();
|
||||
/// })
|
||||
|
||||
Reference in New Issue
Block a user