diff --git a/llvm/docs/ProgrammersManual.rst b/llvm/docs/ProgrammersManual.rst --- a/llvm/docs/ProgrammersManual.rst +++ b/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++ diff --git a/llvm/include/llvm/Support/Chrono.h b/llvm/include/llvm/Support/Chrono.h --- a/llvm/include/llvm/Support/Chrono.h +++ b/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 using TimePoint = std::chrono::time_point;