From 028f8a7242916bece0d0fd6c384d4dd7b99b976e Mon Sep 17 00:00:00 2001 From: Folyd Date: Tue, 9 Nov 2021 15:26:53 +0800 Subject: [PATCH] Fix docs links (#481) --- axum/src/docs/handlers_intro.md | 2 +- axum/src/handler/mod.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/axum/src/docs/handlers_intro.md b/axum/src/docs/handlers_intro.md index 4cc63b6108..4da89bafb2 100644 --- a/axum/src/docs/handlers_intro.md +++ b/axum/src/docs/handlers_intro.md @@ -1,5 +1,5 @@ In axum a "handler" is an async function that accepts zero or more -["extractors"](#extractors) as arguments and returns something that +["extractors"](crate::extract) as arguments and returns something that can be converted [into a response](crate::response). Handlers is where your application logic lives and axum applications are built diff --git a/axum/src/handler/mod.rs b/axum/src/handler/mod.rs index bbad6d9a50..4982eab1b6 100644 --- a/axum/src/handler/mod.rs +++ b/axum/src/handler/mod.rs @@ -67,6 +67,8 @@ //! This error doesn't tell you _why_ your function doesn't implement //! [`Handler`]. It's possible to improve the error with the [`debug_handler`] //! proc-macro from the [axum-debug] crate. +//! +//! [axum-debug]: https://docs.rs/axum-debug use crate::{ body::{box_body, BoxBody},