diff options
| -rw-r--r-- | src/router_option.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/router_option.rs b/src/router_option.rs index d3d0bb9..62ecb47 100644 --- a/src/router_option.rs +++ b/src/router_option.rs @@ -1,10 +1,10 @@ /// Options that can be set for the `Router` #[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)] pub enum RouterOption { - /// Trim trailing slashes from the URL path if it is present and a route - /// match exists + /// If enabled, removes a trailing slash from the request URL path if a route + /// exists for the path without the slash (e.g., `/foo/` becomes `/foo`). RemoveExtraTrailingSlash, - /// Add a trailing slash to the URL path if it is missing and a route - /// match exists + /// If enabled, adds a trailing slash to the request URL path if a route + /// exists for the path with the slash (e.g., `/foo` becomes `/foo/`). AddMissingTrailingSlash, } |