Skip to content

Commit 2977bd4

Browse files
authored
Extractors doc: correct linked example section (#3349)
1 parent ff03186 commit 2977bd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

axum/src/docs/extract.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ If an extractor fails it will return a response with the error and your
269269
handler will not be called. To customize the error response you have two
270270
options:
271271

272-
1. Use `Result<T, T::Rejection>` as your extractor like shown in ["Optional
273-
extractors"](#optional-extractors). This works well if you're only using
274-
the extractor in a single handler.
272+
1. Use `Result<T, T::Rejection>` as your extractor like shown in
273+
["Handling extractor rejections"](#handling-extractor-rejections).
274+
This works well if you're only using the extractor in a single handler.
275275
2. Create your own extractor that in its [`FromRequest`] implementation calls
276276
one of axum's built in extractors but returns a different response for
277277
rejections. See the [customize-extractor-error] example for more details.

0 commit comments

Comments
 (0)