File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -349,19 +349,24 @@ macro_rules! try {
349
349
/// write!(&mut v, "s = {:?}", s).unwrap(); // uses io::Write::write_fmt
350
350
/// assert_eq!(v, b"s = \"abc 123\"");
351
351
/// ```
352
+ ///
352
353
/// 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
354
355
/// implementation details of the components.
356
+ ///
355
357
/// ```
356
358
/// # extern crate core;
357
359
/// use core::fmt::Write;
360
+ ///
358
361
/// struct Example{
359
362
/// }
363
+ ///
360
364
/// impl Write for Example{
361
365
/// fn write_str(&mut self, _s: &str) -> core::fmt::Result {
362
366
/// unimplemented!();
363
367
/// }
364
368
/// }
369
+ ///
365
370
/// let mut m = Example{};
366
371
/// write!(&mut m, "Hello World").expect("Not written");
367
372
/// ```
@@ -734,4 +739,4 @@ mod builtin {
734
739
( $cond: expr, ) => ( { /* compiler built-in */ } ) ;
735
740
( $cond: expr, $( $arg: tt) +) => ( { /* compiler built-in */ } ) ;
736
741
}
737
- }
742
+ }
You can’t perform that action at this time.
0 commit comments