mirror of
https://codeberg.org/icewind/evtype.git
synced 2026-06-03 09:34:11 +02:00
fix example
This commit is contained in:
parent
f4fb676799
commit
74f3929d37
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ A basic rust example:
|
|||
use std::io::Write;
|
||||
use std::os::unix::net::UnixStream;
|
||||
|
||||
fn main -> Result<(), Box<dyn Error>> {
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
let mut stream = UnixStream::connect("/var/run/evtype.sock")?;
|
||||
stream.write_all("hello world".as_bytes())?;
|
||||
Ok(());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue