trpl-zh-cn/listings/ch07-managing-growing-projects/listing-07-16/src/lib.rs

19 lines
299 B
Rust

// ANCHOR: here
use std::fmt::Result;
use std::io::Result as IoResult;
fn function1() -> Result {
// --snip--
// ANCHOR_END: here
Ok(())
// ANCHOR: here
}
fn function2() -> IoResult<()> {
// --snip--
// ANCHOR_END: here
Ok(())
// ANCHOR: here
}
// ANCHOR_END: here