Skip to content

Commit efb88b4

Browse files
MagnumOpus21Siva Prasad
authored and
Siva Prasad
committed
Formatting errors rectified
1 parent 3ae6d06 commit efb88b4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/libcore/macros.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -349,19 +349,24 @@ macro_rules! try {
349349
/// write!(&mut v, "s = {:?}", s).unwrap(); // uses io::Write::write_fmt
350350
/// assert_eq!(v, b"s = \"abc 123\"");
351351
/// ```
352+
///
352353
/// Note : This macro can be used in no_std setups as well
353-
/// In a no_std setup you are responsible for the
354+
/// In a no_std setup you are responsible for the
354355
/// implementation details of the components.
356+
///
355357
/// ```
356358
/// # extern crate core;
357359
/// use core::fmt::Write;
360+
///
358361
/// struct Example{
359362
/// }
363+
///
360364
/// impl Write for Example{
361365
/// fn write_str(&mut self, _s: &str) -> core::fmt::Result {
362366
/// unimplemented!();
363367
/// }
364368
/// }
369+
///
365370
/// let mut m = Example{};
366371
/// write!(&mut m, "Hello World").expect("Not written");
367372
/// ```
@@ -734,4 +739,4 @@ mod builtin {
734739
($cond:expr,) => ({ /* compiler built-in */ });
735740
($cond:expr, $($arg:tt)+) => ({ /* compiler built-in */ });
736741
}
737-
}
742+
}

0 commit comments

Comments
 (0)