1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00
* Fix typos in comments

* Fix typos in demo texts

* Fix typos in code names

* Fix typos in cargos

* Fix typos in changelogs
This commit is contained in:
Jozef Číž
2023-04-18 15:52:45 +02:00
committed by GitHub
parent 8326fffdb0
commit 33aa4d698f
30 changed files with 51 additions and 51 deletions

View File

@@ -263,7 +263,7 @@ mod rw_lock_impl {
pub fn read(&self) -> RwLockReadGuard<'_, T> {
let tid = std::thread::current().id();
// If it is write-locked, and we locked it (re-entrancy deadlock)
// If it is write-locked, and we locked it (reentrancy deadlock)
let would_deadlock =
self.lock.is_locked_exclusive() && self.holders.lock().contains_key(&tid);
assert!(
@@ -291,7 +291,7 @@ mod rw_lock_impl {
pub fn write(&self) -> RwLockWriteGuard<'_, T> {
let tid = std::thread::current().id();
// If it is locked in any way, and we locked it (re-entrancy deadlock)
// If it is locked in any way, and we locked it (reentrancy deadlock)
let would_deadlock = self.lock.is_locked() && self.holders.lock().contains_key(&tid);
assert!(
!would_deadlock,