Skip to content

Commit 9d440d5

Browse files
committed
Spacing changes made to the example
1 parent 5e70394 commit 9d440d5

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/libcore/macros.rs

+10-11
Original file line numberDiff line numberDiff line change
@@ -355,20 +355,19 @@ macro_rules! try {
355355
/// implementation details of the components.
356356
///
357357
/// ```no_run
358-
/// # extern crate core;
359-
/// use core::fmt::Write;
358+
/// # extern crate core;
359+
/// use core::fmt::Write;
360360
///
361-
/// struct Example{
362-
/// }
361+
/// struct Example;
363362
///
364-
/// impl Write for Example{
365-
/// fn write_str(&mut self, _s: &str) -> core::fmt::Result {
366-
/// unimplemented!();
367-
/// }
368-
/// }
363+
/// impl Write for Example {
364+
/// fn write_str(&mut self, _s: &str) -> core::fmt::Result {
365+
/// unimplemented!();
366+
/// }
367+
/// }
369368
///
370-
/// let mut m = Example{};
371-
/// write!(&mut m, "Hello World").expect("Not written");
369+
/// let mut m = Example{};
370+
/// write!(&mut m, "Hello World").expect("Not written");
372371
/// ```
373372
#[macro_export]
374373
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)