Skip to content

Commit da6a1f6

Browse files
[libc] Fix typos in documentation
1 parent 807aa26 commit da6a1f6

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

libcxx/docs/BuildingLibcxx.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Building libc++
1010
.. _build instructions:
1111

1212
The instructions on this page are aimed at vendors who ship libc++ as part of an
13-
operating system distribution, a toolchain or similar shipping vehicules. If you
13+
operating system distribution, a toolchain or similar shipping vehicles. If you
1414
are a user merely trying to use libc++ in your program, you most likely want to
1515
refer to your vendor's documentation, or to the general documentation for using
1616
libc++ :ref:`here <using-libcxx>`.

libcxx/docs/DesignDocs/ExtendedCXX03Support.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ in the function parameter list, and in the return type. For example:
8888
template <class _Tp>
8989
enable_if_t</*...*/> baz(_Tp); // # 3
9090
91-
Using default template parameters for SFINAE (#1) should always be prefered.
91+
Using default template parameters for SFINAE (#1) should always be preferred.
9292

9393
Option #2 has two problems. First, users can observe and accidentally pass values to the SFINAE
94-
function argument. Second, the default arguement creates a live variable, which causes debug
94+
function argument. Second, the default argument creates a live variable, which causes debug
9595
information to be emitted containing the text of the SFINAE.
9696

9797
Option #3 can also cause more debug information to be emitted than is needed, because the function

libcxx/docs/DesignDocs/UnspecifiedBehaviorRandomization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Consider the follow snippet which steadily happens in tests:
1717
1818
Under this assumption all elements in the vector whose first elements are equal
1919
do not guarantee any order. Unfortunately, this prevents libcxx introducing
20-
other implementatiosn because tests might silently fail and the users might
20+
other implementations because tests might silently fail and the users might
2121
heavily depend on the stability of implementations.
2222

2323
Goal

libcxx/docs/ReleaseNotes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ Deprecations and Removals
7373
- C++2b: ``atomic``, ``bit``, ``cstdint``, ``cstdlib``, ``cstring``, ``initializer_list``, ``limits``, ``new``,
7474
``stdexcept``, ``system_error``, ``type_traits``, ``typeinfo``
7575

76-
- ``<algorithm>`` no longer includes ``<chrono>`` in any C++ version (it was prevously included in C++17 and earlier).
76+
- ``<algorithm>`` no longer includes ``<chrono>`` in any C++ version (it was previously included in C++17 and earlier).
7777

78-
- ``<string>`` no longer includes ``<vector>`` in any C++ version (it was prevously included in C++20 and earlier).
78+
- ``<string>`` no longer includes ``<vector>`` in any C++ version (it was previously included in C++20 and earlier).
7979

8080
- ``<string>``, ``<string_view>``, and ``<mutex>`` no longer include ``<functional>``
81-
in any C++ version (it was prevously included in C++20 and earlier).
81+
in any C++ version (it was previously included in C++20 and earlier).
8282

8383
- The headers ``<experimental/algorithm>`` and ``<experimental/functional>`` have been removed, since all the contents
8484
have been implemented in namespace ``std`` for at least two releases.

libcxx/docs/TestingLibcxx.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ concatenate its arguments to a ``std::string`` and write it to ``stderr``. When
319319
the output can't be concatenated a default message will be written to
320320
``stderr``. This is useful for tests where the arguments use different
321321
character types like ``char`` and ``wchar_t``, the latter can't simply be
322-
written to ``stderrr``.
322+
written to ``stderr``.
323323

324324
This macro is in a different header as ``assert_macros.h`` since it pulls in
325325
additional headers.

libcxx/docs/UsingLibcxx.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ that this function is provided by the static or shared library, so it is only av
173173
to a platform where the compiled library is sufficiently recent. On older platforms, the program will
174174
terminate in an unspecified unsuccessful manner, but the quality of diagnostics won't be great.
175175
However, users can also override that mechanism at two different levels. First, the mechanism can be
176-
overriden at compile-time by defining the ``_LIBCPP_VERBOSE_ABORT(format, args...)`` variadic macro.
176+
overridden at compile-time by defining the ``_LIBCPP_VERBOSE_ABORT(format, args...)`` variadic macro.
177177
When that macro is defined, it will be called with a format string as the first argument, followed by
178178
a series of arguments to format using printf-style formatting. Compile-time customization may be
179179
interesting to get precise control over code generation, however it is also inconvenient to use in

0 commit comments

Comments
 (0)