about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRomain Porte <microjoe@microjoe.org>2017-09-10 17:38:55 +0200
committerRomain Porte <microjoe@microjoe.org>2017-09-10 17:38:55 +0200
commita15c541a2afd08095d278249b345323c46ae23d3 (patch)
tree0f6c259b4b71e13cf18f4e6b648ed13c2e876f38
parentabc53cc140a923340d4abf3ed8360d903866886a (diff)
downloadrust-a15c541a2afd08095d278249b345323c46ae23d3.tar.gz
rust-a15c541a2afd08095d278249b345323c46ae23d3.zip
from_micros: added issue number and fixed typo
-rw-r--r--src/libstd/time/duration.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/time/duration.rs b/src/libstd/time/duration.rs
index 2612376704d..9ef757076ba 100644
--- a/src/libstd/time/duration.rs
+++ b/src/libstd/time/duration.rs
@@ -13,7 +13,7 @@ use ops::{Add, Sub, Mul, Div, AddAssign, SubAssign, MulAssign, DivAssign};
 
 const NANOS_PER_SEC: u32 = 1_000_000_000;
 const NANOS_PER_MILLI: u32 = 1_000_000;
-const NANOS_PER_MICROS: u32 = 1_000;
+const NANOS_PER_MICRO: u32 = 1_000;
 const MILLIS_PER_SEC: u64 = 1_000;
 const MICROS_PER_SEC: u64 = 1_000_000;
 
@@ -130,7 +130,7 @@ impl Duration {
     /// assert_eq!(1, duration.as_secs());
     /// assert_eq!(2000, duration.subsec_nanos());
     /// ```
-    #[unstable(feature = "", issue = "")]
+    #[unstable(feature = "", issue = "44400")]
     #[inline]
     pub fn from_micros(micros: u64) -> Duration {
         let secs = micros / MICROS_PER_SEC;