Update README.md

This commit is contained in:
LesnyRumcajs 2019-02-03 16:28:14 +01:00 committed by GitHub
parent 14b2890d2f
commit 45a0e1c337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ Library for managing Wake-on-LAN packets. It supports:
From string representation of MAC address and using defaults when broadcasting: From string representation of MAC address and using defaults when broadcasting:
```rust ```rust
extern crate wakey; extern crate wakey;
let wol = wakey::WolPacket::from_string("01:02:03:04:05:06", ':'); let wol = wakey::WolPacket::from_string("01:02:03:04:05:06", ':');
match wol.send_magic() { match wol.send_magic() {
Ok(_) => println!("Sent the magic packet!"), Ok(_) => println!("Sent the magic packet!"),