First question mark in doctest
This commit is contained in:
parent
4fb77a0398
commit
ee05fc8104
|
@ -335,11 +335,14 @@ macro_rules! r#try {
|
||||||
/// ```
|
/// ```
|
||||||
/// use std::io::Write;
|
/// use std::io::Write;
|
||||||
///
|
///
|
||||||
/// let mut w = Vec::new();
|
/// fn main() -> std::io::Result<()> {
|
||||||
/// write!(&mut w, "test").unwrap();
|
/// let mut w = Vec::new();
|
||||||
/// write!(&mut w, "formatted {}", "arguments").unwrap();
|
/// write!(&mut w, "test")?;
|
||||||
|
/// write!(&mut w, "formatted {}", "arguments")?;
|
||||||
///
|
///
|
||||||
/// assert_eq!(w, b"testformatted arguments");
|
/// assert_eq!(w, b"testformatted arguments");
|
||||||
|
/// Ok(())
|
||||||
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// A module can import both `std::fmt::Write` and `std::io::Write` and call `write!` on objects
|
/// A module can import both `std::fmt::Write` and `std::io::Write` and call `write!` on objects
|
||||||
|
|
Loading…
Reference in New Issue