1
Fork 0

Spacing changes made to the example

This commit is contained in:
Siva Prasad 2018-09-05 09:09:50 -04:00
parent 5e7039411b
commit 9d440d578d

View file

@ -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")]