trpl-zh-cn/listings/ch09-error-handling/no-listing-08-unwrap-that-cant-fail/src/main.rs

8 lines
138 B
Rust
Raw Normal View History

2022-02-06 16:43:51 +08:00
fn main() {
// ANCHOR: here
use std::net::IpAddr;
let home: IpAddr = "127.0.0.1".parse().unwrap();
// ANCHOR_END: here
}