Add note about clone-and-hack to the two UNIX_EPOCH definitions
I edited one of these and looked at the formatted docs for the other. This confused me for a while; I suspected a build system bug. I don't see an easy and neat way to unify these. So let's just document it instead.
This commit is contained in:
parent
7a0600714a
commit
f2649cb961
1 changed files with 6 additions and 0 deletions
|
@ -461,6 +461,9 @@ impl fmt::Debug for Instant {
|
||||||
impl SystemTime {
|
impl SystemTime {
|
||||||
/// An anchor in time which can be used to create new `SystemTime` instances or
|
/// An anchor in time which can be used to create new `SystemTime` instances or
|
||||||
/// learn about where in time a `SystemTime` lies.
|
/// learn about where in time a `SystemTime` lies.
|
||||||
|
//
|
||||||
|
// NOTE! this documentation is duplicated, here and in std::time::UNIX_EPOCH.
|
||||||
|
// The two copies are not quite identical, because of the difference in naming.
|
||||||
///
|
///
|
||||||
/// This constant is defined to be "1970-01-01 00:00:00 UTC" on all systems with
|
/// This constant is defined to be "1970-01-01 00:00:00 UTC" on all systems with
|
||||||
/// respect to the system clock. Using `duration_since` on an existing
|
/// respect to the system clock. Using `duration_since` on an existing
|
||||||
|
@ -617,6 +620,9 @@ impl fmt::Debug for SystemTime {
|
||||||
|
|
||||||
/// An anchor in time which can be used to create new `SystemTime` instances or
|
/// An anchor in time which can be used to create new `SystemTime` instances or
|
||||||
/// learn about where in time a `SystemTime` lies.
|
/// learn about where in time a `SystemTime` lies.
|
||||||
|
//
|
||||||
|
// NOTE! this documentation is duplicated, here and in SystemTime::UNIX_EPOCH.
|
||||||
|
// The two copies are not quite identical, because of the difference in naming.
|
||||||
///
|
///
|
||||||
/// This constant is defined to be "1970-01-01 00:00:00 UTC" on all systems with
|
/// This constant is defined to be "1970-01-01 00:00:00 UTC" on all systems with
|
||||||
/// respect to the system clock. Using `duration_since` on an existing
|
/// respect to the system clock. Using `duration_since` on an existing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue