Wording tweak in #[debug_handler] docs (#1807)

This commit is contained in:
David Pedersen 2023-03-03 12:38:26 +01:00 committed by GitHub
parent e167cfc325
commit 6075be60ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -542,8 +542,7 @@ pub fn derive_from_request_parts(item: TokenStream) -> TokenStream {
///
/// # Limitations
///
/// This macro does not work for associated functions — functions defined in an `impl` block that
/// don't take `self`:
/// This macro does not work for functions in an `impl` block that don't have a `self` parameter:
///
/// ```compile_fail
/// use axum::{debug_handler, extract::Path};