From 7e453e08ce2013a70a32f46cb1c6c36ad8425881 Mon Sep 17 00:00:00 2001 From: Ryan Russell Date: Fri, 16 Sep 2022 06:59:58 -0500 Subject: [PATCH] docs(middlewares): readability improvements Signed-off-by: Ryan Russell --- include/crow/middlewares/cookie_parser.h | 2 +- include/crow/middlewares/session.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/crow/middlewares/cookie_parser.h b/include/crow/middlewares/cookie_parser.h index b16dc04e2..0e0ddd2de 100644 --- a/include/crow/middlewares/cookie_parser.h +++ b/include/crow/middlewares/cookie_parser.h @@ -296,7 +296,7 @@ namespace crow C::handle context.aaa - App::context : private CookieParser::contetx, ... + App::context : private CookieParser::context, ... { jar diff --git a/include/crow/middlewares/session.h b/include/crow/middlewares/session.h index 59650f31a..67f958168 100644 --- a/include/crow/middlewares/session.h +++ b/include/crow/middlewares/session.h @@ -243,16 +243,16 @@ namespace crow return node->mutex; } - // Check wheter this session is already present + // Check whether this session is already present bool exists() { return bool(node); } // Get a value by key or fallback if it doesn't exist or is of another type template auto get(const std::string& key, const F& fallback = F()) - // This trick lets the mutli_value deduce the return type from the fallback + // This trick lets the multi_value deduce the return type from the fallback // which allows both: // context.get("key") - // context.get("key", "") -> char[] is transformed into string by mutlivalue + // context.get("key", "") -> char[] is transformed into string by multivalue // to return a string -> decltype(std::declval().get(std::declval())) {