Skip to content

Commit

Permalink
s/instead follow/follow/ for #2010
Browse files Browse the repository at this point in the history
  • Loading branch information
hsutter committed Jan 19, 2023
1 parent 1ba3371 commit 0bc56ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CppCoreGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -2981,7 +2981,7 @@ For passing sequences of characters see [String](#SS-string).
##### Exception

To express shared ownership using `shared_ptr` types, rather than following guidelines F.16-21,
instead follow [R.34](#Rr-sharedptrparam-owner), [R.35](#Rr-sharedptrparam), and [R.36](#Rr-sharedptrparam-const).
follow [R.34](#Rr-sharedptrparam-owner), [R.35](#Rr-sharedptrparam), and [R.36](#Rr-sharedptrparam-const).

### <a name="Rf-in"></a>F.16: For "in" parameters, pass cheaply-copied types by value and others by reference to `const`

Expand Down Expand Up @@ -3036,7 +3036,7 @@ If you need the notion of an optional value, use a pointer, `std::optional`, or

##### Exception

To express shared ownership using `shared_ptr` types, instead follow [R.34](#Rr-sharedptrparam-owner) or [R.36](#Rr-sharedptrparam-const),
To express shared ownership using `shared_ptr` types, follow [R.34](#Rr-sharedptrparam-owner) or [R.36](#Rr-sharedptrparam-const),
depending on whether or not the function unconditionally takes a reference to the argument.

### <a name="Rf-inout"></a>F.17: For "in-out" parameters, pass by reference to non-`const`
Expand Down Expand Up @@ -3119,7 +3119,7 @@ For example:

##### Exception

If the "will-move-from" parameter is a `shared_ptr` instead follow [R.34](#Rr-sharedptrparam-owner) and pass the `shared_ptr` by value.
If the "will-move-from" parameter is a `shared_ptr` follow [R.34](#Rr-sharedptrparam-owner) and pass the `shared_ptr` by value.

##### Enforcement

Expand Down

0 comments on commit 0bc56ff

Please sign in to comment.