Skip to content

Commit 87bdc8e

Browse files
authored
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
2 parents 574ef55 + 827ee7a commit 87bdc8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub use core::time::Duration;
6767
/// |:---------:|:--------------------------------------------------------------------:|
6868
/// | Cloud ABI | [clock_time_get (Monotonic Clock)] |
6969
/// | SGX | [`insecure_time` usercall]. More information on [timekeeping in SGX] |
70-
/// | UNIX | [clock_time_get (Monotonic Clock)] |
70+
/// | UNIX | [clock_gettime (Monotonic Clock)] |
7171
/// | Darwin | [mach_absolute_time] |
7272
/// | VXWorks | [clock_gettime (Monotonic Clock)] |
7373
/// | WASI | [__wasi_clock_time_get (Monotonic Clock)] |

0 commit comments

Comments
 (0)