Spacing changes made to the example
This commit is contained in:
parent
5e7039411b
commit
9d440d578d
1 changed files with 10 additions and 11 deletions
|
@ -355,20 +355,19 @@ macro_rules! try {
|
||||||
/// implementation details of the components.
|
/// implementation details of the components.
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// # extern crate core;
|
/// # extern crate core;
|
||||||
/// use core::fmt::Write;
|
/// use core::fmt::Write;
|
||||||
///
|
///
|
||||||
/// struct Example{
|
/// struct Example;
|
||||||
/// }
|
|
||||||
///
|
///
|
||||||
/// impl Write for Example{
|
/// impl Write for Example {
|
||||||
/// fn write_str(&mut self, _s: &str) -> core::fmt::Result {
|
/// fn write_str(&mut self, _s: &str) -> core::fmt::Result {
|
||||||
/// unimplemented!();
|
/// unimplemented!();
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
/// let mut m = Example{};
|
/// let mut m = Example{};
|
||||||
/// write!(&mut m, "Hello World").expect("Not written");
|
/// write!(&mut m, "Hello World").expect("Not written");
|
||||||
/// ```
|
/// ```
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue