Skip to content

Commit b0e862f

Browse files
Minor change to README code example
1 parent 4a67af2 commit b0e862f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@ This is a library for getting information about running processes for Mac OS X a
99
extern crate libproc;
1010
use libproc::libproc::proc_pid;
1111
12-
...
13-
1412
match proc_pid::pidpath(pid) {
15-
Ok(path) => {
16-
println!("PID {}: has path {}", pid, path);
17-
},
13+
Ok(path) => println!("PID {}: has path {}", pid, path),
1814
Err(err) => writeln!(&mut std::io::stderr(), "Error: {}", err).unwrap()
1915
}
2016
```

0 commit comments

Comments
 (0)