Skip to content

Commit

Permalink
Fix error code in 'FromParam' rustdocs.
Browse files Browse the repository at this point in the history
Resolves #2880.
  • Loading branch information
SergioBenitez committed Dec 2, 2024
1 parent 3fd5508 commit f058f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/src/request/from_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f058f6e

Please sign in to comment.