Skip to content

Commit 1882c0b

Browse files
committed
Update docs
1 parent 9ff62d7 commit 1882c0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang-tools-extra/docs/clang-tidy/checks/modernize/loop-convert.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ Options
147147
.. option:: UseCxx20ReverseRanges
148148

149149
When set to true convert loops when in C++20 or later mode using
150-
``std::ranges::reverse_view``.
150+
``std::views::reverse``.
151151
Default value is `true`.
152152

153153
.. option:: MakeReverseRangeFunction
154154

155155
Specify the function used to reverse an iterator pair, the function should
156156
accept a class with ``rbegin`` and ``rend`` methods and return a
157157
class with ``begin`` and ``end`` methods that call the ``rbegin`` and
158-
``rend`` methods respectively. Common examples are ``ranges::reverse_view``
158+
``rend`` methods respectively. Common examples are ``std::views::reverse``
159159
and ``llvm::reverse``.
160160
Default value is an empty string.
161161

clang-tools-extra/docs/clang-tidy/checks/modernize/use-ranges.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ Transforms to:
122122

123123
.. code-block:: c++
124124

125-
auto AreSame = std::ranges::equal(std::ranges::reverse_view(Items1),
126-
std::ranges::reverse_view(Items2));
125+
auto AreSame = std::ranges::equal(std::views::reverse(Items1),
126+
std::views::reverse(Items2));
127127

128128
Options
129129
-------

0 commit comments

Comments
 (0)