Add "Basic Usage" to int min_value, max_value docs

This commit is contained in:
Nikolai Vazquez 2017-12-24 14:01:48 -05:00
parent 000fbbc9b8
commit c08a51c826

View File

@ -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);
/// ```