From 485c490b1f7b04c049f89f3a26c36d563fe624c2 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Thu, 2 Nov 2023 09:01:58 +0800 Subject: [PATCH] Fix typos: 'preceeding', 'occured'. --- core/lib/src/router/collider.rs | 2 +- core/lib/src/router/matcher.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/src/router/collider.rs b/core/lib/src/router/collider.rs index 500af5c9..acf4d7c9 100644 --- a/core/lib/src/router/collider.rs +++ b/core/lib/src/router/collider.rs @@ -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`, diff --git a/core/lib/src/router/matcher.rs b/core/lib/src/router/matcher.rs index 83d30c87..00c9dec3 100644 --- a/core/lib/src/router/matcher.rs +++ b/core/lib/src/router/matcher.rs @@ -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`,