]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #68161 - ruuda:fix-instant-docs, r=rkruppe
authorYuki Okushi <huyuumi.dev@gmail.com>
Mon, 13 Jan 2020 07:44:24 +0000 (16:44 +0900)
committerGitHub <noreply@github.com>
Mon, 13 Jan 2020 07:44:24 +0000 (16:44 +0900)
commit87bdc8eb73b5dd48f58bca00b307cbca1351b2f9
tree731b779310aa28b33dc1108624e9d96e60db1c64
parent574ef55ea73ba1bb2848b54e5ff18a912accc719
parent827ee7a70adf923c3202c714b81a3a8b6c9ea29c
Rollup merge of #68161 - ruuda:fix-instant-docs, r=rkruppe

Fix system call docs for time::Instant

The link for UNIX was pointing to the Cloud ABI docs. It should have been pointing to the `clock_gettime` docs instead. A similar table is repeated in the docs for `SystemTime`, but there the UNIX entry was already correct.

`clock_gettime(CLOCK_MONOTONIC)` is the current implementation: https://github.com/rust-lang/rust/blob/3ebcfa1451cfedc13a07e6353d8ade9742dfdc2a/src/libstd/sys/unix/time.rs#L274
https://github.com/rust-lang/rust/blob/3ebcfa1451cfedc13a07e6353d8ade9742dfdc2a/src/libstd/sys/unix/time.rs#L348-L352

r? @steveklabnik