Skip to content

Commit

Permalink
Use RFC 3164 in README code
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Aug 24, 2015
1 parent 2dd4245 commit c287654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn main() {
match syslog::unix(Facility::LOG_USER) {
Err(e) => println!("impossible to connect to syslog: {:?}", e),
Ok(writer) => {
let r = writer.send(Severity::LOG_ALERT, String::from("hello world"));
let r = writer.send_3164(Severity::LOG_ALERT, String::from("hello world"));
if r.is_err() {
println!("error sending the log {}", r.err().expect("got error"));
}
Expand Down

0 comments on commit c287654

Please sign in to comment.