summaryrefslogtreecommitdiff
path: root/absl/synchronization
diff options
context:
space:
mode:
authorGravatar Vertexwahn <julian.amann@tum.de>2023-05-02 20:13:10 +0200
committerGravatar Vertexwahn <julian.amann@tum.de>2023-05-02 20:24:15 +0200
commitd60c3ac625461da89e198b8912bb0bda251ef980 (patch)
treed6bddb4fc448c4a223cfa860637ed9366ff2cf52 /absl/synchronization
parent3132b83a1a1c82df959e000057de27e1b8ff692d (diff)
Fix spelling mistakes
Diffstat (limited to 'absl/synchronization')
-rw-r--r--absl/synchronization/mutex.h2
-rw-r--r--absl/synchronization/mutex_method_pointer_test.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/absl/synchronization/mutex.h b/absl/synchronization/mutex.h
index 29c049df..8bbcae88 100644
--- a/absl/synchronization/mutex.h
+++ b/absl/synchronization/mutex.h
@@ -273,7 +273,7 @@ class ABSL_LOCKABLE Mutex {
// Aliases for `Mutex::Lock()`, `Mutex::Unlock()`, and `Mutex::TryLock()`.
//
// These methods may be used (along with the complementary `Reader*()`
- // methods) to distingish simple exclusive `Mutex` usage (`Lock()`,
+ // methods) to distinguish simple exclusive `Mutex` usage (`Lock()`,
// etc.) from reader/writer lock usage.
void WriterLock() ABSL_EXCLUSIVE_LOCK_FUNCTION() { this->Lock(); }
diff --git a/absl/synchronization/mutex_method_pointer_test.cc b/absl/synchronization/mutex_method_pointer_test.cc
index 1ec801a0..f4c82d27 100644
--- a/absl/synchronization/mutex_method_pointer_test.cc
+++ b/absl/synchronization/mutex_method_pointer_test.cc
@@ -26,8 +26,8 @@ class IncompleteClass;
#ifdef _MSC_VER
// These tests verify expectations about sizes of MSVC pointers to methods.
-// Pointers to methods are distinguished by whether their class hierachies
-// contain single inheritance, multiple inheritance, or virtual inheritence.
+// Pointers to methods are distinguished by whether their class hierarchies
+// contain single inheritance, multiple inheritance, or virtual inheritance.
// Declare classes of the various MSVC inheritance types.
class __single_inheritance SingleInheritance{};