From 7621f476442d2f746f145a39b0170a3c036fc225 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Thu, 17 Nov 2022 21:15:23 +0000 Subject: [PATCH] fix spelling errors in sync --- .vscode/settings.json | 1 + agb/src/sync/locks.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7726307a..a3fc0b2f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -54,6 +54,7 @@ "mgba", "normalise", "normalised", + "nostack", "Optimisation", "optimise", "optimised", diff --git a/agb/src/sync/locks.rs b/agb/src/sync/locks.rs index ce93465d..a1a0cf3f 100644 --- a/agb/src/sync/locks.rs +++ b/agb/src/sync/locks.rs @@ -26,7 +26,7 @@ impl RawMutex { /// Locks the mutex and returns whether a lock was successfully acquired. fn raw_lock(&self) -> bool { if self.0.replace(true) { - // value was already true, opps. + // value was already true, oops. false } else { // prevent any weird reordering, and continue