From 48d08c71e01d1688bd38a8101d8caa3880d120f3 Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 11 May 2023 18:03:43 -0500 Subject: [PATCH] Update doc comments --- src/handler/origin_router.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/handler/origin_router.rs b/src/handler/origin_router.rs index a4a3d811..b3993de8 100644 --- a/src/handler/origin_router.rs +++ b/src/handler/origin_router.rs @@ -21,20 +21,20 @@ impl OriginRouter { .map(|boxed_handler| &**boxed_handler) } - /// Construct a new OriginRouter + /// Construct a new OriginRouter. pub fn new() -> Self { Self::default() } - /// add a handler to this origin router at the specified exact origin, returning self - /// see also [`add_handler`] + /// Add a handler to this origin router at the specified exact origin, returning self. + /// See also [`add_handler`]. pub fn with_handler(mut self, origin: &str, handler: impl Handler) -> Self { self.add_handler(origin, handler); self } - /// add a handler to this origin router at the specified exect origin. - /// see also [`with_handler`] for chainability + /// Add a handler to this origin router at the specified exact origin. + /// See also [`with_handler`] for chainability. pub fn add_handler(&mut self, origin: &str, handler: impl Handler) { self.map.insert( origin.to_lowercase().trim_end_matches('/').to_owned(),