fix typos

This commit is contained in:
Pascal Kuthe 2023-08-06 20:15:56 +02:00
parent b9ac6c9a20
commit 1aafe89a16
No known key found for this signature in database
GPG Key ID: D715E8655AE166A6

View File

@ -100,9 +100,9 @@ impl<T> Vec<T> {
debug_assert!(!entries.is_null());
let entry = Bucket::<T>::get(entries, location.entry, self.columns);
// this looks odd but is necessary to ensure cross
// thread synchronizaton (essentailly acting as a memory barrier)
// since the caller must only gurantee that he has observed active on any thread
// but the current thread might still have an old value cached (altough unlikely)
// thread synchronization (essentially acting as a memory barrier)
// since the caller must only guarantee that he has observed active on any thread
// but the current thread might still have an old value cached (although unlikely)
let _ = (*entry).active.load(Ordering::Acquire);
Entry::read(entry, self.columns)
}