about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-10-25 14:31:13 +0200
committerGitHub <noreply@github.com>2018-10-25 14:31:13 +0200
commit4f14bfdc73338d9b49eebb3f905bfc3df47d6891 (patch)
tree1391b9932de51c2fae0d3ceb400e2bb677e23e6b /src/libstd
parent88341a99398d740de8b82fff297731e68c9d2a75 (diff)
parent4972beaf65cad992a6ed791fdefe90e46c09aa7b (diff)
downloadrust-4f14bfdc73338d9b49eebb3f905bfc3df47d6891.tar.gz
rust-4f14bfdc73338d9b49eebb3f905bfc3df47d6891.zip
Rollup merge of #55269 - matthiaskrgr:typos_oct, r=zackmdavis
fix typos in various places
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sync/mod.rs2
-rw-r--r--src/libstd/sync/once.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sync/mod.rs b/src/libstd/sync/mod.rs
index d69ebc17622..a7db372a0e2 100644
--- a/src/libstd/sync/mod.rs
+++ b/src/libstd/sync/mod.rs
@@ -97,7 +97,7 @@
 //! - A **multiprocessor** system executing multiple hardware threads
 //!   at the same time: In multi-threaded scenarios, you can use two
 //!   kinds of primitives to deal with synchronization:
-//!   - [memory fences] to ensure memory accesses are made visibile to
+//!   - [memory fences] to ensure memory accesses are made visible to
 //!   other CPUs in the right order.
 //!   - [atomic operations] to ensure simultaneous access to the same
 //!   memory location doesn't lead to undefined behavior.
diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs
index 98845e457b2..cf9698cb2a9 100644
--- a/src/libstd/sync/once.rs
+++ b/src/libstd/sync/once.rs
@@ -290,8 +290,8 @@ impl Once {
     }
 
     /// Returns true if some `call_once` call has completed
-    /// successfuly. Specifically, `is_completed` will return false in
-    /// the following situtations:
+    /// successfully. Specifically, `is_completed` will return false in
+    /// the following situations:
     ///   * `call_once` was not called at all,
     ///   * `call_once` was called, but has not yet completed,
     ///   * the `Once` instance is poisoned