Fix error code in 'FromParam' rustdocs.

Resolves #2880.
This commit is contained in:
Sergio Benitez 2024-12-02 11:08:09 +01:00
parent 3fd5508629
commit f058f6e01d
1 changed files with 1 additions and 1 deletions

View File

@ -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