Skip to content

Commit ce2e318

Browse files
committed
docs: Fix missing colon in methods for primitive types
1 parent 1870e92 commit ce2e318

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

core/src/num/uint_macros.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -2222,7 +2222,7 @@ macro_rules! uint_impl {
22222222
///
22232223
/// # Examples
22242224
///
2225-
/// Basic usage
2225+
/// Basic usage:
22262226
///
22272227
/// ```
22282228
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".overflowing_add(2), (7, false));")]
@@ -2320,7 +2320,7 @@ macro_rules! uint_impl {
23202320
///
23212321
/// # Examples
23222322
///
2323-
/// Basic usage
2323+
/// Basic usage:
23242324
///
23252325
/// ```
23262326
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".overflowing_sub(2), (3, false));")]
@@ -2447,7 +2447,7 @@ macro_rules! uint_impl {
24472447
///
24482448
/// # Examples
24492449
///
2450-
/// Basic usage
2450+
/// Basic usage:
24512451
///
24522452
/// ```
24532453
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".overflowing_div(2), (2, false));")]
@@ -2478,7 +2478,7 @@ macro_rules! uint_impl {
24782478
///
24792479
/// # Examples
24802480
///
2481-
/// Basic usage
2481+
/// Basic usage:
24822482
///
24832483
/// ```
24842484
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".overflowing_div_euclid(2), (2, false));")]
@@ -2506,7 +2506,7 @@ macro_rules! uint_impl {
25062506
///
25072507
/// # Examples
25082508
///
2509-
/// Basic usage
2509+
/// Basic usage:
25102510
///
25112511
/// ```
25122512
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".overflowing_rem(2), (1, false));")]
@@ -2537,7 +2537,7 @@ macro_rules! uint_impl {
25372537
///
25382538
/// # Examples
25392539
///
2540-
/// Basic usage
2540+
/// Basic usage:
25412541
///
25422542
/// ```
25432543
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".overflowing_rem_euclid(2), (1, false));")]
@@ -2561,7 +2561,7 @@ macro_rules! uint_impl {
25612561
///
25622562
/// # Examples
25632563
///
2564-
/// Basic usage
2564+
/// Basic usage:
25652565
///
25662566
/// ```
25672567
#[doc = concat!("assert_eq!(0", stringify!($SelfT), ".overflowing_neg(), (0, false));")]
@@ -2586,7 +2586,7 @@ macro_rules! uint_impl {
25862586
///
25872587
/// # Examples
25882588
///
2589-
/// Basic usage
2589+
/// Basic usage:
25902590
///
25912591
/// ```
25922592
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".overflowing_shl(4), (0x10, false));")]
@@ -2612,7 +2612,7 @@ macro_rules! uint_impl {
26122612
///
26132613
/// # Examples
26142614
///
2615-
/// Basic usage
2615+
/// Basic usage:
26162616
///
26172617
/// ```
26182618
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".overflowing_shr(4), (0x1, false));")]

core/src/str/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,7 @@ impl str {
24002400
///
24012401
/// # Examples
24022402
///
2403-
/// Basic usage
2403+
/// Basic usage:
24042404
///
24052405
/// ```
24062406
/// let four: u32 = "4".parse().unwrap();

0 commit comments

Comments
 (0)