Skip to content

Commit ceaa546

Browse files
authored
Update README.md
1 parent 874ba39 commit ceaa546

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ let val = state.withLock { $0 }
3737

3838
Or mutate the state
3939
```swift
40-
let val = state.withLock { $0 += 1 }
40+
let val = state.withLock {
41+
$0 += 1
42+
return $0
43+
}
4144
```
4245

4346
# Gist

0 commit comments

Comments
 (0)