Skip to content

Commit

Permalink
from_micros: Fix missing {
Browse files Browse the repository at this point in the history
  • Loading branch information
gagath committed Sep 9, 2017
1 parent 2e6aed8 commit abc53cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/time/duration.rs
Expand Up @@ -116,6 +116,7 @@ impl Duration {
let secs = millis / MILLIS_PER_SEC;
let nanos = ((millis % MILLIS_PER_SEC) as u32) * NANOS_PER_MILLI;
Duration { secs: secs, nanos: nanos }
}

/// Creates a new `Duration` from the specified number of microseconds.
///
Expand Down

0 comments on commit abc53cc

Please sign in to comment.