Skip to content

Commit f058f6e

Browse files
committed
Fix error code in 'FromParam' rustdocs.
Resolves #2880.
1 parent 3fd5508 commit f058f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/src/request/from_param.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use crate::http::uri::{Segments, error::PathError, fmt::Path};
3939
/// If `usize::from_param` returns an `Ok(usize)` variant, the encapsulated
4040
/// value is used as the `id` function parameter. If not, the request is
4141
/// forwarded to the next matching route. Since there are no additional matching
42-
/// routes, this example will result in a 404 error for requests with invalid
42+
/// routes, this example will result in a 422 error for requests with invalid
4343
/// `id` values.
4444
///
4545
/// # Catching Errors

0 commit comments

Comments
 (0)