Skip to content

Commit

Permalink
Minor typos fix in doc: reference_wrapper.hh
Browse files Browse the repository at this point in the history
Closes #2483
  • Loading branch information
mkmik authored and xemul committed Oct 10, 2024
1 parent 54e25a9 commit 7e2a2a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/seastar/util/reference_wrapper.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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<typename T>
Expand Down

0 comments on commit 7e2a2a0

Please sign in to comment.