From 74ce57c0d311089598ad2cc4b7bd452d4e2efad7 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 8 Jul 2025 05:23:11 +0000 Subject: docs(router_option): Expand documentation --- src/router_option.rs | 8 ++++---- 1 file 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, } -- cgit v1.2.3