Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
juhaku committed Aug 29, 2024
1 parent 69dfbbc commit bcc4fca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion utoipa-axum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub use paste::paste;
/// let _: UtoipaMethodRouter = routes!(get_user, search_user);
/// ```
/// Since the _`axum`_ does not support method filter for `CONNECT` requests, using this macro with
/// handler having request method type `CONNET` `#[utoipa::path(connet, path = "")]` will panic at
/// handler having request method type `CONNECT` `#[utoipa::path(connect, path = "")]` will panic at
/// runtime.
///
/// # Examples
Expand Down
6 changes: 3 additions & 3 deletions utoipa-gen/tests/path_derive_actix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1102,15 +1102,15 @@ test_derive_path_operations! {
}

#[test]
fn derive_path_with_mulitple_methods_skip_connect() {
fn derive_path_with_multiple_methods_skip_connect() {
#[utoipa::path(
responses(
(status = 200, description = "success response")
)
)]
#[route("/route foo", method = "GET", method = "HEAD", method = "CONNECT")]
#[allow(unused)]
async fn mulitple_methods() -> impl Responder {
async fn multiple_methods() -> impl Responder {
String::new()
}

Expand All @@ -1120,6 +1120,6 @@ fn derive_path_with_mulitple_methods_skip_connect() {
utoipa::openapi::path::HttpMethod::Get,
utoipa::openapi::path::HttpMethod::Head
],
__path_mulitple_methods::methods()
__path_multiple_methods::methods()
)
}

0 comments on commit bcc4fca

Please sign in to comment.