sync: fix documentation for new_spin_lock function (#24795)

This commit is contained in:
Laurent Cheylus 2025-06-26 19:46:40 +02:00 committed by GitHub
parent cf698066db
commit 3d320afa65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ mut:
padding [63]u8 // Cache line padding (fills to 64 bytes total)
}
// new_spin_lock creates and returns a new SpinLock instance initialized to unlocked state
// new_spin_lock creates and returns a new SpinLock instance initialized to unlocked state.
pub fn new_spin_lock() &SpinLock {
mut the_lock := &SpinLock{
locked: 0