Add "Basic Usage" to int min_value, max_value docs
This commit is contained in:
parent
000fbbc9b8
commit
c08a51c826
@ -103,6 +103,8 @@ macro_rules! int_impl {
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Basic usage:
|
||||
///
|
||||
/// ```
|
||||
/// assert_eq!(i8::min_value(), -128);
|
||||
/// ```
|
||||
@ -116,6 +118,8 @@ pub const fn min_value() -> Self {
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Basic usage:
|
||||
///
|
||||
/// ```
|
||||
/// assert_eq!(i8::max_value(), 127);
|
||||
/// ```
|
||||
@ -1252,6 +1256,8 @@ macro_rules! uint_impl {
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Basic usage:
|
||||
///
|
||||
/// ```
|
||||
/// assert_eq!(u8::min_value(), 0);
|
||||
/// ```
|
||||
@ -1263,6 +1269,8 @@ pub const fn min_value() -> Self { 0 }
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Basic usage:
|
||||
///
|
||||
/// ```
|
||||
/// assert_eq!(u8::max_value(), 255);
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user