rust/library/std
Chris Denton 10e17dc3a4
Rollup merge of #139982 - coolreader18:time-doc-tweak, r=jhpratt
SystemTime doc tweaks

* Change the `UNIX_EPOCH` link in the `SystemTime` docs to point to the associated constant, not the module level constant. The former seems to be the recommended way to access it, since aiui the only reason the module constant exists in the first place is that associated constants weren't stable yet at the time.
* Reword the comment in the `SystemTime` example - "an error occurred!" is a tad misleading; I feel like it implies a system error out of our control while `SystemTimeError` is more of a logic error.

I was originally just gonna do the first thing but I noticed the second and figured I may as well.

I'm also somewhat surprised that there aren't more in-depth module level docs for `std::time`; they don't even mention `SystemTime` at all. I might make another PR for that but mainly just wanted to flag it.
2025-04-21 15:55:57 +00:00
..
benches Fix import in bench for wasm 2025-02-12 14:44:30 -08:00
src Rollup merge of #139982 - coolreader18:time-doc-tweak, r=jhpratt 2025-04-21 15:55:57 +00:00
tests Basic tests of MPMC receiver cloning 2025-04-15 02:37:57 +01:00
build.rs Revert "Disable f16 on Aarch64 without neon" 2025-04-02 19:21:10 +00:00
Cargo.toml Update compiler-builtins to 0.1.155 2025-04-17 19:08:27 +00:00