about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/sync
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-11-14 21:50:39 +0100
committerGitHub <noreply@github.com>2023-11-14 21:50:39 +0100
commit2e00c6ffd739cd34c07a9de8193813afbf976595 (patch)
treef05d18ad0caea6fe6d44ee2c926668a7d021c64d /compiler/rustc_data_structures/src/sync
parent52f3a6fdb2586f61acd47be005d7fd46d93a20c1 (diff)
parenta44a4edc0eb4361f998646891ba3728d3c9d9694 (diff)
downloadrust-2e00c6ffd739cd34c07a9de8193813afbf976595.tar.gz
rust-2e00c6ffd739cd34c07a9de8193813afbf976595.zip
Rollup merge of #117911 - catandcoder:master, r=lqd
Fix some typos
Diffstat (limited to 'compiler/rustc_data_structures/src/sync')
-rw-r--r--compiler/rustc_data_structures/src/sync/lock.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_data_structures/src/sync/lock.rs b/compiler/rustc_data_structures/src/sync/lock.rs
index 339aebbf81a..040a8aa6b63 100644
--- a/compiler/rustc_data_structures/src/sync/lock.rs
+++ b/compiler/rustc_data_structures/src/sync/lock.rs
@@ -38,7 +38,7 @@ mod maybe_sync {
         lock: &'a Lock<T>,
         marker: PhantomData<&'a mut T>,
 
-        /// The syncronization mode of the lock. This is explicitly passed to let LLVM relate it
+        /// The synchronization mode of the lock. This is explicitly passed to let LLVM relate it
         /// to the original lock operation.
         mode: Mode,
     }
@@ -142,7 +142,7 @@ mod maybe_sync {
             .then(|| LockGuard { lock: self, marker: PhantomData, mode })
         }
 
-        /// This acquires the lock assuming syncronization is in a specific mode.
+        /// This acquires the lock assuming synchronization is in a specific mode.
         ///
         /// Safety
         /// This method must only be called with `Mode::Sync` if `might_be_dyn_thread_safe` was