Skip to content

Commit 5a42d8f

Browse files
committed
Reformat assert_eq_size doc
1 parent 0e24778 commit 5a42d8f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/lib.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@ pub extern crate core as _core;
1111
/// # Example
1212
///
1313
/// ```
14-
/// #[macro_use]
15-
/// extern crate static_assertions;
16-
///
14+
/// # #[macro_use]
15+
/// # extern crate static_assertions;
1716
/// struct Byte(u8);
1817
///
19-
/// fn main() {
20-
/// assert_eq_size!(Byte, u8);
21-
/// // assert_eq_size!(Byte, u16); // Fails to compile
18+
/// # fn main() {
19+
/// assert_eq_size!(Byte, u8);
2220
///
23-
/// // Supports unlimited arguments:
24-
/// assert_eq_size!([Byte; 4], [u16; 2], u32);
25-
/// }
21+
/// // Supports unlimited arguments:
22+
/// assert_eq_size!([Byte; 4], [u16; 2], u32);
23+
///
24+
/// // Fails to compile:
25+
/// // assert_eq_size!(Byte, u16);
26+
/// # }
2627
/// ```
2728
#[macro_export]
2829
macro_rules! assert_eq_size {

0 commit comments

Comments
 (0)