summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2024-03-08 11:47:54 -0500
committerMica White <botahamec@outlook.com>2024-03-08 11:47:54 -0500
commit6b6f207965cc71fa9a7a056a1c89675116abec74 (patch)
tree82561d29cc9c5ba9bc91ff1bd35ce74d64fd35d7 /README.md
parente8cb12855d975a49f72210bb8c738092d6b82171 (diff)
Add type to example
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 79d1945..9ee6718 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ This library prevents #4, by requiring that all of the resources that a thread n
## Example
```rust
-let data = Mutex::new(0);
+let data: SpinLock<i32> = Mutex::new(0);
for _ in 0..N {
thread::spawn(move || {