Rollup merge of #128526 - tshepang:patch-1, r=Amanieu

time.rs: remove "Basic usage text"

Only one example is given (for each method)
This commit is contained in:
Matthias Krüger 2024-08-04 11:32:34 +02:00 committed by GitHub
commit c8a33f7e34
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;
///