From f058f6e01d6abc27ea766edd23db16edfac3affc Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 2 Dec 2024 11:08:09 +0100 Subject: [PATCH] Fix error code in 'FromParam' rustdocs. Resolves #2880. --- core/lib/src/request/from_param.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/src/request/from_param.rs b/core/lib/src/request/from_param.rs index f639d38e..ac701eb8 100644 --- a/core/lib/src/request/from_param.rs +++ b/core/lib/src/request/from_param.rs @@ -39,7 +39,7 @@ use crate::http::uri::{Segments, error::PathError, fmt::Path}; /// If `usize::from_param` returns an `Ok(usize)` variant, the encapsulated /// value is used as the `id` function parameter. If not, the request is /// forwarded to the next matching route. Since there are no additional matching -/// routes, this example will result in a 404 error for requests with invalid +/// routes, this example will result in a 422 error for requests with invalid /// `id` values. /// /// # Catching Errors