[PATCH] D113462: [llvm] Fix small typos in Programmer's Manual and Chrono.h.
Noah Shutty via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 16 11:21:14 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc9509b03a1a5: [llvm] Fix small typos in Programmer's Manual and Chrono.h. (authored by noajshu).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113462/new/
https://reviews.llvm.org/D113462
Files:
llvm/docs/ProgrammersManual.rst
llvm/include/llvm/Support/Chrono.h
Index: llvm/include/llvm/Support/Chrono.h
===================================================================
--- llvm/include/llvm/Support/Chrono.h
+++ llvm/include/llvm/Support/Chrono.h
@@ -22,13 +22,13 @@
namespace sys {
/// A time point on the system clock. This is provided for two reasons:
-/// - to insulate us agains subtle differences in behavoir to differences in
-/// system clock precision (which is implementation-defined and differs between
-/// platforms).
+/// - to insulate us against subtle differences in behavior to differences in
+/// system clock precision (which is implementation-defined and differs
+/// between platforms).
/// - to shorten the type name
-/// The default precision is nanoseconds. If need a specific precision specify
-/// it explicitly. If unsure, use the default. If you need a time point on a
-/// clock other than the system_clock, use std::chrono directly.
+/// The default precision is nanoseconds. If you need a specific precision
+/// specify it explicitly. If unsure, use the default. If you need a time point
+/// on a clock other than the system_clock, use std::chrono directly.
template <typename D = std::chrono::nanoseconds>
using TimePoint = std::chrono::time_point<std::chrono::system_clock, D>;
Index: llvm/docs/ProgrammersManual.rst
===================================================================
--- llvm/docs/ProgrammersManual.rst
+++ llvm/docs/ProgrammersManual.rst
@@ -214,7 +214,7 @@
It can be implicitly constructed using a C style null-terminated string, an
``std::string``, or explicitly with a character pointer and length. For
-example, the ``StringRef`` find function is declared as:
+example, the ``StringMap`` find function is declared as:
.. code-block:: c++
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113462.394934.patch
Type: text/x-patch
Size: 1764 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211216/0f60ccbf/attachment.bin>
More information about the llvm-commits
mailing list