Fix examples

This commit is contained in:
Ospald, Julian 2017-07-11 14:36:21 +02:00
parent cee315cf36
commit 6a96044a68
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ extern crate libnotify;
fn main() {
// Init libnotify
libnotify::init("myapp");
// Create a new notification and show it
// Create a new notification (doesn't show it yet)
let n =
libnotify::Notification::new("Summary", Some("Optional Body"), None);
// Show the notification

View File

@ -6,7 +6,7 @@
//! fn main() {
//! // Init libnotify
//! libnotify::init("myapp").unwrap();
//! // Create a new notification and show it
//! // Create a new notification (doesn't show it yet)
//! let n = libnotify::Notification::new("Summary",
//! Some("Optional Body"),
//! None);