diff --git a/doc/ck_swlock b/doc/ck_swlock index f3f6833..e101334 100644 --- a/doc/ck_swlock +++ b/doc/ck_swlock @@ -120,8 +120,8 @@ writer(void) /* Write-side critical section. */ /* This is safe to do with-in a latch. */ - *contrived = *lock; - *lock = *contrived; + contrived = lock; + lock = contrived; ck_swlock_write_unlatch(&lock); }