Skip to content

Commit 1870e92

Browse files
committed
docs: Fix missing period in methods for integer types
1 parent e3c425b commit 1870e92

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

core/src/num/int_macros.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ macro_rules! int_impl {
13001300
}
13011301
}
13021302

1303-
/// Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`
1303+
/// Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`.
13041304
///
13051305
/// If `rhs` is larger or equal to the number of bits in `self`,
13061306
/// the entire value is shifted out, and `0` is returned.
@@ -1423,7 +1423,7 @@ macro_rules! int_impl {
14231423
}
14241424
}
14251425

1426-
/// Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`
1426+
/// Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`.
14271427
///
14281428
/// If `rhs` is larger or equal to the number of bits in `self`,
14291429
/// the entire value is shifted out, which yields `0` for a positive number,
@@ -2389,7 +2389,7 @@ macro_rules! int_impl {
23892389
(res, overflowed ^ (rhs < 0))
23902390
}
23912391

2392-
/// Calculates `self` - `rhs`
2392+
/// Calculates `self` - `rhs`.
23932393
///
23942394
/// Returns a tuple of the subtraction along with a boolean indicating whether an arithmetic overflow
23952395
/// would occur. If an overflow would have occurred then the wrapped value is returned.
@@ -2470,7 +2470,7 @@ macro_rules! int_impl {
24702470
(c, b != d)
24712471
}
24722472

2473-
/// Calculates `self` - `rhs` with an unsigned `rhs`
2473+
/// Calculates `self` - `rhs` with an unsigned `rhs`.
24742474
///
24752475
/// Returns a tuple of the subtraction along with a boolean indicating
24762476
/// whether an arithmetic overflow would occur. If an overflow would

core/src/num/uint_macros.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ macro_rules! uint_impl {
14901490
}
14911491
}
14921492

1493-
/// Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`
1493+
/// Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`.
14941494
///
14951495
/// If `rhs` is larger or equal to the number of bits in `self`,
14961496
/// the entire value is shifted out, and `0` is returned.
@@ -1613,7 +1613,7 @@ macro_rules! uint_impl {
16131613
}
16141614
}
16151615

1616-
/// Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`
1616+
/// Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`.
16171617
///
16181618
/// If `rhs` is larger or equal to the number of bits in `self`,
16191619
/// the entire value is shifted out, and `0` is returned.
@@ -2312,7 +2312,7 @@ macro_rules! uint_impl {
23122312
(res, overflowed ^ (rhs < 0))
23132313
}
23142314

2315-
/// Calculates `self` - `rhs`
2315+
/// Calculates `self` - `rhs`.
23162316
///
23172317
/// Returns a tuple of the subtraction along with a boolean indicating
23182318
/// whether an arithmetic overflow would occur. If an overflow would

0 commit comments

Comments
 (0)