Update doc example

This commit is contained in:
Mika Attila 2015-11-03 00:50:27 +01:00
parent 94bb46164f
commit 4b0aaab709

View File

@ -8,13 +8,11 @@
//! panic!("{}", e);
//! });
//! let body_text = Some("This is the optional body text.");
//! let n = notify.new_notification("This is the summary.",
//! body_text,
//! None).unwrap_or_else(|e| {
//! panic!("{}", e);
//! });
//! n.show().ok().expect("Failed to show notification");
//! let n = notify.new_notification("This is the summary.", body_text, None)
//! .unwrap_or_else(|e| panic!("{}", e));
//! n.show().unwrap_or_else(|e| panic!("{}", e));
//!}
//!
//! ```
extern crate libnotify_sys as sys;