about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-05-15 08:37:09 -0700
committerbors <bors@rust-lang.org>2016-05-15 08:37:09 -0700
commit9f58fb776a74a44f4fcc2cb57084d33c55530aa4 (patch)
tree007f7ad1fef9ac62eeefe2b9f36eafba11431b4b /src/libstd
parentb3583193531c124e36aa1813cf5f8b8e667d016c (diff)
parent95ace6be43d3e037f8b812e03bd8ace3b0d9e50a (diff)
downloadrust-9f58fb776a74a44f4fcc2cb57084d33c55530aa4.tar.gz
rust-9f58fb776a74a44f4fcc2cb57084d33c55530aa4.zip
Auto merge of #33658 - Manishearth:rollup, r=Manishearth
Rollup of 14 pull requests

- Successful merges: #33342, #33393, #33415, #33475, #33517, #33533, #33534, #33565, #33580, #33584, #33585, #33590, #33591, #33598
- Failed merges: #33578
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/env.rs20
-rw-r--r--src/libstd/sync/once.rs1
-rw-r--r--src/libstd/time/mod.rs2
3 files changed, 11 insertions, 12 deletions
diff --git a/src/libstd/env.rs b/src/libstd/env.rs
index 9dc6a26cdee..6956dc0d901 100644
--- a/src/libstd/env.rs
+++ b/src/libstd/env.rs
@@ -452,16 +452,16 @@ pub fn home_dir() -> Option<PathBuf> {
 
 /// Returns the path of a temporary directory.
 ///
-/// On Unix, returns the value of the 'TMPDIR' environment variable if it is
-/// set, otherwise for non-Android it returns '/tmp'. If Android, since there
-/// is no global temporary folder (it is usually allocated per-app), we return
-/// '/data/local/tmp'.
-///
-/// On Windows, returns the value of, in order, the 'TMP', 'TEMP',
-/// 'USERPROFILE' environment variable  if any are set and not the empty
-/// string. Otherwise, tmpdir returns the path of the Windows directory. This
-/// behavior is identical to that of [GetTempPath][msdn], which this function
-/// uses internally.
+/// On Unix, returns the value of the `TMPDIR` environment variable if it is
+/// set, otherwise for non-Android it returns `/tmp`. If Android, since there
+/// is no global temporary folder (it is usually allocated per-app), it returns
+/// `/data/local/tmp`.
+///
+/// On Windows, returns the value of, in order, the `TMP`, `TEMP`,
+/// `USERPROFILE` environment variable if any are set and not the empty
+/// string. Otherwise, `temp_dir` returns the path of the Windows directory.
+/// This behavior is identical to that of [`GetTempPath`][msdn], which this
+/// function uses internally.
 ///
 /// [msdn]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa364992(v=vs.85).aspx
 ///
diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs
index e228d236a3c..d8a4a69c73c 100644
--- a/src/libstd/sync/once.rs
+++ b/src/libstd/sync/once.rs
@@ -218,7 +218,6 @@ impl Once {
     /// The closure `f` is yielded a structure which can be used to query the
     /// state of this `Once` (whether initialization has previously panicked or
     /// not).
-    /// poisoned or not.
     #[unstable(feature = "once_poison", issue = "31688")]
     pub fn call_once_force<F>(&'static self, f: F) where F: FnOnce(&OnceState) {
         // same as above, just with a different parameter to `call_inner`.
diff --git a/src/libstd/time/mod.rs b/src/libstd/time/mod.rs
index bc50b0d3a70..80963a9b735 100644
--- a/src/libstd/time/mod.rs
+++ b/src/libstd/time/mod.rs
@@ -76,7 +76,7 @@ pub struct Instant(time::Instant);
 /// Distinct from the `Instant` type, this time measurement **is not
 /// monotonic**. This means that you can save a file to the file system, then
 /// save another file to the file system, **and the second file has a
-/// `SystemTime` measurement earlier than the second**. In other words, an
+/// `SystemTime` measurement earlier than the first**. In other words, an
 /// operation that happens after another operation in real time may have an
 /// earlier `SystemTime`!
 ///