Skip to content

Commit

Permalink
Fix typos: 'preceeding', 'occured'.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuishuang authored and SergioBenitez committed Dec 18, 2023
1 parent b5278de commit 485c490
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/lib/src/router/collider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
2 changes: 1 addition & 1 deletion core/lib/src/router/matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 485c490

Please sign in to comment.