Update doc example
This commit is contained in:
parent
94bb46164f
commit
4b0aaab709
10
src/lib.rs
10
src/lib.rs
@ -8,13 +8,11 @@
|
|||||||
//! panic!("{}", e);
|
//! panic!("{}", e);
|
||||||
//! });
|
//! });
|
||||||
//! let body_text = Some("This is the optional body text.");
|
//! let body_text = Some("This is the optional body text.");
|
||||||
//! let n = notify.new_notification("This is the summary.",
|
//! let n = notify.new_notification("This is the summary.", body_text, None)
|
||||||
//! body_text,
|
//! .unwrap_or_else(|e| panic!("{}", e));
|
||||||
//! None).unwrap_or_else(|e| {
|
//! n.show().unwrap_or_else(|e| panic!("{}", e));
|
||||||
//! panic!("{}", e);
|
|
||||||
//! });
|
|
||||||
//! n.show().ok().expect("Failed to show notification");
|
|
||||||
//!}
|
//!}
|
||||||
|
//!
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
extern crate libnotify_sys as sys;
|
extern crate libnotify_sys as sys;
|
||||||
|
Loading…
Reference in New Issue
Block a user