From 069a682ffb4082160af57a8add97fe81860c8849 Mon Sep 17 00:00:00 2001 From: Nan Xiao Date: Tue, 13 Jul 2021 17:23:54 +0800 Subject: [PATCH] Fix a typo in src/lib.rs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 8690157..afd4ec8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,7 @@ //! Prevent false sharing by padding and aligning to the length of a cache line. //! //! In concurrent programming, sometimes it is desirable to make sure commonly accessed shared data -//! is not all placed into the same cache line. Updating an atomic value invalides the whole cache +//! is not all placed into the same cache line. Updating an atomic value invalidates the whole cache //! line it belongs to, which makes the next access to the same cache line slower for other CPU //! cores. Use [`CachePadded`] to ensure updating one piece of data doesn't invalidate other cached //! data.