[llvm] c9509b0 - [llvm] Fix small typos in Programmer's Manual and Chrono.h.

Noah Shutty via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 16 11:21:00 PST 2021


Author: Noah Shutty
Date: 2021-12-16T19:20:25Z
New Revision: c9509b03a1a5b589e6ce5f1b4e4724f002cb636e

URL: https://github.com/llvm/llvm-project/commit/c9509b03a1a5b589e6ce5f1b4e4724f002cb636e
DIFF: https://github.com/llvm/llvm-project/commit/c9509b03a1a5b589e6ce5f1b4e4724f002cb636e.diff

LOG: [llvm] Fix small typos in Programmer's Manual and Chrono.h.

The Programmer's Manual guidance on the StringRef class (https://llvm.org/docs/ProgrammersManual.html#the-stringref-class) refers to `iterator StringRef::find(StringRef Key)` which does not exist. Based on context this is surely a small typo meant to be `iterator StringMap::find(StringRef Key)`.

This also corrects some small typos in the comments of llvm/include/llvm/Support/Chrono.h

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D113462

Added: 
    

Modified: 
    llvm/docs/ProgrammersManual.rst
    llvm/include/llvm/Support/Chrono.h

Removed: 
    


################################################################################
diff  --git a/llvm/docs/ProgrammersManual.rst b/llvm/docs/ProgrammersManual.rst
index f26ae7b10fcbc..e3cf917e9405e 100644
--- a/llvm/docs/ProgrammersManual.rst
+++ b/llvm/docs/ProgrammersManual.rst
@@ -214,7 +214,7 @@ character array and a length) and supports the common operations available on
 
 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++
 

diff  --git a/llvm/include/llvm/Support/Chrono.h b/llvm/include/llvm/Support/Chrono.h
index f478549a7e4ec..629a37a90aae7 100644
--- a/llvm/include/llvm/Support/Chrono.h
+++ b/llvm/include/llvm/Support/Chrono.h
@@ -22,13 +22,13 @@ class raw_ostream;
 namespace sys {
 
 /// A time point on the system clock. This is provided for two reasons:
-/// - to insulate us agains subtle 
diff erences in behavoir to 
diff erences in
-///   system clock precision (which is implementation-defined and 
diff ers between
-///   platforms).
+/// - to insulate us against subtle 
diff erences in behavior to 
diff erences in
+///   system clock precision (which is implementation-defined and 
diff ers
+///   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>;
 


        


More information about the llvm-commits mailing list