From 7e2a2a09c53cf5d14ba8048e790704fcf7897cbc Mon Sep 17 00:00:00 2001 From: Marko Mikulicic Date: Wed, 9 Oct 2024 17:36:01 +0200 Subject: [PATCH] Minor typos fix in doc: reference_wrapper.hh Closes scylladb/seastar#2483 --- include/seastar/util/reference_wrapper.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/seastar/util/reference_wrapper.hh b/include/seastar/util/reference_wrapper.hh index f9c5403735d..a0946a8502a 100644 --- a/include/seastar/util/reference_wrapper.hh +++ b/include/seastar/util/reference_wrapper.hh @@ -33,10 +33,10 @@ namespace seastar { /// allow implicit construction from a reference and the only way to construct /// it is to use either ref() or cref(). The reason for that discrepancy (and /// also the reason why seastar::reference_wrapper was introduced) is that it -/// server different purpose than std::reference_wrapper. The latter protects +/// serves a different purpose than std::reference_wrapper. The latter protects /// references from decaying and allows copying and assigning them. -/// seastar::reference_wrapper is used mainly to force user to explicitly -/// state that object is passed by reference thus reducing the chances that +/// seastar::reference_wrapper is used mainly to force the user to explicitly +/// state that an object is passed by reference thus reducing the chances of /// the referred object being prematurely destroyed in case the execution /// is deferred to a continuation. template