Fix typo in 'Request' docs: no`n`th -> `n`th.

This commit is contained in:
toshokan 2021-06-01 23:25:50 -04:00 committed by Sergio Benitez
parent 0cd8bd2313
commit 27519a97ea
1 changed files with 3 additions and 2 deletions

View File

@ -619,6 +619,7 @@ impl<'r> Request<'r> {
/// current_user(&request).await
/// }).await;
/// # })
/// ```
#[inline]
pub async fn local_cache_async<'a, T, F>(&'a self, fut: F) -> &'a T
where F: Future<Output = T>,
@ -633,8 +634,8 @@ impl<'r> Request<'r> {
}
}
/// Retrieves and parses into `T` the 0-indexed no`n`th non-empty segment
/// from the _routed_ request, that is, the `n`th segment _after_ the mount
/// Retrieves and parses into `T` the 0-indexed `n`th non-empty segment from
/// the _routed_ request, that is, the `n`th segment _after_ the mount
/// point. If the request has not been routed, then this is simply the `n`th
/// non-empty request URI segment.
///