Skip to content

Commit a32275d

Browse files
authored
Unrolled build for #142402
Rollup merge of #142402 - sorairolake:remove-blank-line, r=workingjubilee chore(doctest): Remove redundant blank lines Remove redundant leading blank lines from doctests of [`iN::cast_unsigned`](https://doc.rust-lang.org/std/primitive.i32.html#method.cast_unsigned), [`slice::escape_ascii`](https://doc.rust-lang.org/std/primitive.slice.html#method.escape_ascii) and [`u8::escape_ascii`](https://doc.rust-lang.org/std/primitive.u8.html#method.escape_ascii).
2 parents 573a015 + 8584c7c commit a32275d

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

library/core/src/num/int_macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ macro_rules! int_impl {
239239
/// Basic usage:
240240
///
241241
/// ```
242-
///
243242
#[doc = concat!("let n = -1", stringify!($SelfT), ";")]
244243
///
245244
#[doc = concat!("assert_eq!(n.cast_unsigned(), ", stringify!($UnsignedT), "::MAX);")]

library/core/src/num/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,6 @@ impl u8 {
10531053
/// # Examples
10541054
///
10551055
/// ```
1056-
///
10571056
/// assert_eq!("0", b'0'.escape_ascii().to_string());
10581057
/// assert_eq!("\\t", b'\t'.escape_ascii().to_string());
10591058
/// assert_eq!("\\r", b'\r'.escape_ascii().to_string());

library/core/src/slice/ascii.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ impl [u8] {
128128
/// # Examples
129129
///
130130
/// ```
131-
///
132131
/// let s = b"0\t\r\n'\"\\\x9d";
133132
/// let escaped = s.escape_ascii().to_string();
134133
/// assert_eq!(escaped, "0\\t\\r\\n\\'\\\"\\\\\\x9d");

0 commit comments

Comments
 (0)