Fix typos: 'preceeding', 'occured'.

This commit is contained in:
cui fliter 2023-11-02 09:01:58 +08:00 committed by Sergio Benitez
parent b5278de795
commit 485c490b1f
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ impl Route {
/// `0..n`, either `a.uri[i]` is dynamic _or_ `b.uri[i]` is dynamic
/// _or_ they're both static with the same value.
/// - One URI has fewer segments _and_ ends with a trailing dynamic
/// parameter _and_ the preceeding segments in both routes match the
/// parameter _and_ the preceding segments in both routes match the
/// conditions above.
///
/// Collisions are symmetric: for any routes `a` and `b`,

View File

@ -74,7 +74,7 @@ impl Route {
}
impl Catcher {
/// Returns `true` if `self` matches errors with `status` that occured
/// Returns `true` if `self` matches errors with `status` that occurred
/// during `request`.
///
/// A [_match_](Catcher#routing) between a `Catcher` and a (`Status`,