From 2f31440796f8c10fac27d0b045fd23118664ba4f Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Tue, 22 Apr 2014 12:32:49 -0400 Subject: [PATCH] doc/ck_swlock: Fix example. --- doc/ck_swlock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }