Skip to content

Commit 06b2804

Browse files
cpetersobrson
authored andcommitted
std: Update timespec comments to say "nanoseconds"
1 parent c7bdee8 commit 06b2804

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/time.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ extern mod rustrt {
2929
fn rust_mktime(&&tm: tm, &sec: i64);
3030
}
3131

32-
/// A record specifying a time value in seconds and microseconds.
32+
/// A record specifying a time value in seconds and nanoseconds.
3333
type timespec = {sec: i64, nsec: i32};
3434

3535
/**
3636
* Returns the current time as a `timespec` containing the seconds and
37-
* microseconds since 1970-01-01T00:00:00Z.
37+
* nanoseconds since 1970-01-01T00:00:00Z.
3838
*/
3939
fn get_time() -> timespec {
4040
let mut sec = 0i64;

0 commit comments

Comments
 (0)