From 2977bd4adfe096905059e79eb9c596059da2427e Mon Sep 17 00:00:00 2001 From: Jan Runge Date: Fri, 1 Aug 2025 23:47:55 +0200 Subject: [PATCH] Extractors doc: correct linked example section (#3349) --- axum/src/docs/extract.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/axum/src/docs/extract.md b/axum/src/docs/extract.md index 7da57086..4659d908 100644 --- a/axum/src/docs/extract.md +++ b/axum/src/docs/extract.md @@ -269,9 +269,9 @@ If an extractor fails it will return a response with the error and your handler will not be called. To customize the error response you have two options: -1. Use `Result` as your extractor like shown in ["Optional - extractors"](#optional-extractors). This works well if you're only using - the extractor in a single handler. +1. Use `Result` as your extractor like shown in + ["Handling extractor rejections"](#handling-extractor-rejections). + This works well if you're only using the extractor in a single handler. 2. Create your own extractor that in its [`FromRequest`] implementation calls one of axum's built in extractors but returns a different response for rejections. See the [customize-extractor-error] example for more details.