Fix examples
This commit is contained in:
parent
cee315cf36
commit
6a96044a68
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user