Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Dec 16, 2022
1 parent 4bdc6a9 commit e863e57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

This crate provides two thread-safe, non-blocking, no-std synchronization primitives:
* [`ExclusiveCell`] can be accessed at most once and provides mutable access to the stored contents.
* [`CallOnce`] can only be called once sucessfully.
* [`CallOnce`] can only be called once successfully.

[`ExclusiveCell`]: https://docs.rs/exclusive_cell/latest/exclusive_cell/struct.ExclusiveCell.html
[`CallOnce`]: https://docs.rs/exclusive_cell/latest/exclusive_cell/struct.CallOnce.html
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//! assert!(EXCLUSIVE_CELL.take().is_none());
//! ```
//!
//! [`CallOnce`] can only be called once sucessfully:
//! [`CallOnce`] can only be called once successfully:
//!
//! ```
//! use exclusive_cell::CallOnce;
Expand All @@ -32,7 +32,7 @@ use core::{
sync::atomic::{AtomicBool, Ordering},
};

/// A synchronization primitive that can only be called once sucessfully.
/// A synchronization primitive that can only be called once successfully.
///
/// It behaves similarily to `ExclusiveCell<()>` but with a more descriptive API.
///
Expand Down

0 comments on commit e863e57

Please sign in to comment.