mirror of
https://github.com/actix/actix-web.git
synced 2024-12-30 12:00:38 +00:00
Fix typo in Query extractor docs (#1777)
This commit is contained in:
parent
e5b86d189c
commit
9b42333fac
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ use crate::request::HttpRequest;
|
|||
/// }
|
||||
///
|
||||
/// // Use `Query` extractor for query information (and destructure it within the signature).
|
||||
/// // This handler gets called only if the request's query string contains a `username` field.
|
||||
/// // This handler gets called only if the request's query string contains `id` and `response_type` fields.
|
||||
/// // The correct request for this handler would be `/index.html?id=64&response_type=Code"`.
|
||||
/// async fn index(web::Query(info): web::Query<AuthRequest>) -> String {
|
||||
/// format!("Authorization request for client with id={} and type={:?}!", info.id, info.response_type)
|
||||
|
@ -117,7 +117,7 @@ impl<T: fmt::Display> fmt::Display for Query<T> {
|
|||
/// }
|
||||
///
|
||||
/// // Use `Query` extractor for query information.
|
||||
/// // This handler get called only if request's query contains `username` field
|
||||
/// // This handler get called only if request's query contains `id` and `response_type` fields.
|
||||
/// // The correct request for this handler would be `/index.html?id=64&response_type=Code"`
|
||||
/// async fn index(info: web::Query<AuthRequest>) -> String {
|
||||
/// format!("Authorization request for client with id={} and type={:?}!", info.id, info.response_type)
|
||||
|
|
Loading…
Reference in a new issue