about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-12-26 15:19:00 +0800
committerGitHub <noreply@github.com>2017-12-26 15:19:00 +0800
commit6b1aa5301ff53be75cc4924f7a5f8b10feb5d698 (patch)
tree442f064a81953341693df1d5e33ea639acdec6ef
parentc1d2eca7bad0e5dcd18fce34acb1446f9dedd299 (diff)
parentc08a51c826b04aaa2bdc3f458f73e8f9915671af (diff)
downloadrust-6b1aa5301ff53be75cc4924f7a5f8b10feb5d698.tar.gz
rust-6b1aa5301ff53be75cc4924f7a5f8b10feb5d698.zip
Rollup merge of #46986 - nvzqz:basic-usage, r=steveklabnik
Add "Basic Usage" to int min_value and max_value docs

This adds "Basic Usage:" to the docs of `min_value` and `max_value`, which makes it consistent with docs of other integer methods.
-rw-r--r--src/libcore/num/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 851c0a0dd6f..b89aa134e73 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -103,6 +103,8 @@ macro_rules! int_impl {
         ///
         /// # Examples
         ///
+        /// Basic usage:
+        ///
         /// ```
         /// assert_eq!(i8::min_value(), -128);
         /// ```
@@ -116,6 +118,8 @@ macro_rules! int_impl {
         ///
         /// # 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 @@ macro_rules! uint_impl {
         ///
         /// # Examples
         ///
+        /// Basic usage:
+        ///
         /// ```
         /// assert_eq!(u8::max_value(), 255);
         /// ```