Documentation fixes

This commit is contained in:
Paul Dicker 2024-02-21 07:56:29 +01:00 committed by Paul Dicker
parent 90dbd75d0d
commit 5caa640f0f

View File

@ -108,7 +108,7 @@ impl TimeDelta {
/// Makes a new `TimeDelta` with the given number of weeks.
///
/// Equivalent to `TimeDelta::seconds(weeks * 7 * 24 * 60 * 60)` with
/// Equivalent to `TimeDelta::try_seconds(weeks * 7 * 24 * 60 * 60)` with
/// overflow checks.
///
/// # Errors
@ -135,7 +135,7 @@ impl TimeDelta {
/// Makes a new `TimeDelta` with the given number of days.
///
/// Equivalent to `TimeDelta::seconds(days * 24 * 60 * 60)` with overflow
/// Equivalent to `TimeDelta::try_seconds(days * 24 * 60 * 60)` with overflow
/// checks.
///
/// # Errors
@ -161,7 +161,7 @@ impl TimeDelta {
/// Makes a new `TimeDelta` with the given number of hours.
///
/// Equivalent to `TimeDelta::seconds(hours * 60 * 60)` with overflow checks.
/// Equivalent to `TimeDelta::try_seconds(hours * 60 * 60)` with overflow checks.
///
/// # Errors
///
@ -186,7 +186,7 @@ impl TimeDelta {
/// Makes a new `TimeDelta` with the given number of minutes.
///
/// Equivalent to `TimeDelta::seconds(minutes * 60)` with overflow checks.
/// Equivalent to `TimeDelta::try_seconds(minutes * 60)` with overflow checks.
///
/// # Errors
///