]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/thread/local.rs
Various minor/cosmetic improvements to code
[rust.git] / src / libstd / thread / local.rs
index 4df4751117244451299281594de09ec169aa75b4..8bb990960618e78d43a32b9488a5f5b53c6abf3f 100644 (file)
@@ -269,7 +269,7 @@ unsafe fn init(&self, slot: &UnsafeCell<Option<T>>) -> &T {
         //      ptr::write(ptr, Some(value))
         //
         // Due to this pattern it's possible for the destructor of the value in
-        // `ptr` (e.g. if this is being recursively initialized) to re-access
+        // `ptr` (e.g., if this is being recursively initialized) to re-access
         // TLS, in which case there will be a `&` and `&mut` pointer to the same
         // value (an aliasing violation). To avoid setting the "I'm running a
         // destructor" flag we just use `mem::replace` which should sequence the