Fix doc nits
Many tiny changes to stdlib doc comments to make them consistent (for example "Returns foo", rather than "Return foo", per RFC1574), adding missing periods, paragraph breaks, backticks for monospace style, and other minor nits. https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
This commit is contained in:
@@ -1037,7 +1037,7 @@ impl Duration {
|
||||
Duration::from_secs_f32(rhs * self.as_secs_f32())
|
||||
}
|
||||
|
||||
/// Divide `Duration` by `f64`.
|
||||
/// Divides `Duration` by `f64`.
|
||||
///
|
||||
/// # Panics
|
||||
/// This method will panic if result is negative, overflows `Duration` or not finite.
|
||||
@@ -1058,7 +1058,7 @@ impl Duration {
|
||||
Duration::from_secs_f64(self.as_secs_f64() / rhs)
|
||||
}
|
||||
|
||||
/// Divide `Duration` by `f32`.
|
||||
/// Divides `Duration` by `f32`.
|
||||
///
|
||||
/// # Panics
|
||||
/// This method will panic if result is negative, overflows `Duration` or not finite.
|
||||
@@ -1081,7 +1081,7 @@ impl Duration {
|
||||
Duration::from_secs_f32(self.as_secs_f32() / rhs)
|
||||
}
|
||||
|
||||
/// Divide `Duration` by `Duration` and return `f64`.
|
||||
/// Divides `Duration` by `Duration` and returns `f64`.
|
||||
///
|
||||
/// # Examples
|
||||
/// ```
|
||||
@@ -1102,7 +1102,7 @@ impl Duration {
|
||||
self_nanos / rhs_nanos
|
||||
}
|
||||
|
||||
/// Divide `Duration` by `Duration` and return `f32`.
|
||||
/// Divides `Duration` by `Duration` and returns `f32`.
|
||||
///
|
||||
/// # Examples
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user