Extractors doc: correct linked example section (#3349)

This commit is contained in:
Jan Runge
2025-09-28 19:22:10 +02:00
committed by Jonas Platte
parent 25549f0ba2
commit f736e9f24e
+3 -3
View File
@@ -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 handler will not be called. To customize the error response you have two
options: options:
1. Use `Result<T, T::Rejection>` as your extractor like shown in ["Optional 1. Use `Result<T, T::Rejection>` as your extractor like shown in
extractors"](#optional-extractors). This works well if you're only using ["Handling extractor rejections"](#handling-extractor-rejections).
the extractor in a single handler. 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 2. Create your own extractor that in its [`FromRequest`] implementation calls
one of axum's built in extractors but returns a different response for one of axum's built in extractors but returns a different response for
rejections. See the [customize-extractor-error] example for more details. rejections. See the [customize-extractor-error] example for more details.