time.rs: remove "Basic usage text"

Only one example is given (for each method)
This commit is contained in:
Tshepang Mbambo 2024-08-02 05:16:01 +02:00 committed by GitHub
parent 425ae69588
commit af79a6396c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -617,8 +617,6 @@ pub const fn as_nanos(&self) -> u128 {
///
/// # Examples
///
/// Basic usage:
///
/// ```
/// use std::time::Duration;
///
@ -640,8 +638,6 @@ pub const fn abs_diff(self, other: Duration) -> Duration {
///
/// # Examples
///
/// Basic usage:
///
/// ```
/// use std::time::Duration;
///
@ -700,8 +696,6 @@ pub const fn saturating_add(self, rhs: Duration) -> Duration {
///
/// # Examples
///
/// Basic usage:
///
/// ```
/// use std::time::Duration;
///
@ -758,8 +752,6 @@ pub const fn saturating_sub(self, rhs: Duration) -> Duration {
///
/// # Examples
///
/// Basic usage:
///
/// ```
/// use std::time::Duration;
///
@ -814,8 +806,6 @@ pub const fn saturating_mul(self, rhs: u32) -> Duration {
///
/// # Examples
///
/// Basic usage:
///
/// ```
/// use std::time::Duration;
///