diff options
-rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst b/clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst index a3af055f7b6..d61df3fded2 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst @@ -10,8 +10,8 @@ The check is only applied to loop variables of types that are expensive to copy which means they are not trivially copyable or have a non-trivial copy constructor or destructor. -To ensure that it is safe to replace the copy with const reference the following -heuristic is employed: +To ensure that it is safe to replace the copy with a const reference the +following heuristic is employed: 1. The loop variable is const qualified. 2. The loop variable is not const, but only const methods or operators are |