Skip to content

Commit a15c541

Browse files
committed
from_micros: added issue number and fixed typo
1 parent abc53cc commit a15c541

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/time/duration.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use ops::{Add, Sub, Mul, Div, AddAssign, SubAssign, MulAssign, DivAssign};
1313

1414
const NANOS_PER_SEC: u32 = 1_000_000_000;
1515
const NANOS_PER_MILLI: u32 = 1_000_000;
16-
const NANOS_PER_MICROS: u32 = 1_000;
16+
const NANOS_PER_MICRO: u32 = 1_000;
1717
const MILLIS_PER_SEC: u64 = 1_000;
1818
const MICROS_PER_SEC: u64 = 1_000_000;
1919

@@ -130,7 +130,7 @@ impl Duration {
130130
/// assert_eq!(1, duration.as_secs());
131131
/// assert_eq!(2000, duration.subsec_nanos());
132132
/// ```
133-
#[unstable(feature = "", issue = "")]
133+
#[unstable(feature = "", issue = "44400")]
134134
#[inline]
135135
pub fn from_micros(micros: u64) -> Duration {
136136
let secs = micros / MICROS_PER_SEC;

0 commit comments

Comments
 (0)