mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
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:
@@ -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;
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user