Files
Notes/notes-service/vendor/hostname/examples/hostname.rs
T
2026-08-01 16:11:49 +03:00

12 lines
198 B
Rust

//! Naive re-implementation of the Linux `hostname` program.
use std::io;
fn main() -> io::Result<()> {
let name = hostname::get()?;
println!("{}", name.to_string_lossy());
Ok(())
}