[llvm] [NFC][docs]: fix a couple typos in Statistic.h (PR #185657)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 10 07:14:43 PDT 2026


https://github.com/jamieQ created https://github.com/llvm/llvm-project/pull/185657

None

>From fd0023e5a1b3378c7adbcc08e0f8135e6dd8c5a2 Mon Sep 17 00:00:00 2001
From: Jamie <2119834+jamieQ at users.noreply.github.com>
Date: Tue, 10 Mar 2026 09:13:33 -0500
Subject: [PATCH] [NFC][docs]: fix a couple typos in Statistic.h

---
 llvm/include/llvm/ADT/Statistic.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/llvm/include/llvm/ADT/Statistic.h b/llvm/include/llvm/ADT/Statistic.h
index 75d608beb0134..19c04b1f09f22 100644
--- a/llvm/include/llvm/ADT/Statistic.h
+++ b/llvm/include/llvm/ADT/Statistic.h
@@ -202,7 +202,7 @@ LLVM_ABI void PrintStatisticsJSON(raw_ostream &OS);
 /// statistics without needing to parse JSON.
 ///
 /// This function does not prevent statistics being updated by other threads
-/// during it's execution. It will return the value at the point that it is
+/// during its execution. It will return the value at the point that it is
 /// read. However, it will prevent new statistics from registering until it
 /// completes.
 LLVM_ABI std::vector<std::pair<StringRef, uint64_t>> GetStatistics();
@@ -212,8 +212,8 @@ LLVM_ABI std::vector<std::pair<StringRef, uint64_t>> GetStatistics();
 ///
 /// When this function begins to call destructors prior to returning, all
 /// statistics will be zero and unregistered. However, that might not remain the
-/// case by the time this function finishes returning. Whether update from other
-/// threads are lost or merely deferred until during the function return is
+/// case by the time this function finishes returning. Whether updates from
+/// other threads are lost or merely deferred until the function returns is
 /// timing sensitive.
 ///
 /// Callers who intend to use this to measure statistics for a single



More information about the llvm-commits mailing list