Skip to content

Commit c08a51c

Browse files
committed
Add "Basic Usage" to int min_value, max_value docs
1 parent 000fbbc commit c08a51c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/libcore/num/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ macro_rules! int_impl {
103103
///
104104
/// # Examples
105105
///
106+
/// Basic usage:
107+
///
106108
/// ```
107109
/// assert_eq!(i8::min_value(), -128);
108110
/// ```
@@ -116,6 +118,8 @@ macro_rules! int_impl {
116118
///
117119
/// # Examples
118120
///
121+
/// Basic usage:
122+
///
119123
/// ```
120124
/// assert_eq!(i8::max_value(), 127);
121125
/// ```
@@ -1252,6 +1256,8 @@ macro_rules! uint_impl {
12521256
///
12531257
/// # Examples
12541258
///
1259+
/// Basic usage:
1260+
///
12551261
/// ```
12561262
/// assert_eq!(u8::min_value(), 0);
12571263
/// ```
@@ -1263,6 +1269,8 @@ macro_rules! uint_impl {
12631269
///
12641270
/// # Examples
12651271
///
1272+
/// Basic usage:
1273+
///
12661274
/// ```
12671275
/// assert_eq!(u8::max_value(), 255);
12681276
/// ```

0 commit comments

Comments
 (0)