Fix examples
This commit is contained in:
parent
cee315cf36
commit
6a96044a68
@ -3,7 +3,7 @@ extern crate libnotify;
|
|||||||
fn main() {
|
fn main() {
|
||||||
// Init libnotify
|
// Init libnotify
|
||||||
libnotify::init("myapp");
|
libnotify::init("myapp");
|
||||||
// Create a new notification and show it
|
// Create a new notification (doesn't show it yet)
|
||||||
let n =
|
let n =
|
||||||
libnotify::Notification::new("Summary", Some("Optional Body"), None);
|
libnotify::Notification::new("Summary", Some("Optional Body"), None);
|
||||||
// Show the notification
|
// Show the notification
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//! fn main() {
|
//! fn main() {
|
||||||
//! // Init libnotify
|
//! // Init libnotify
|
||||||
//! libnotify::init("myapp").unwrap();
|
//! 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",
|
//! let n = libnotify::Notification::new("Summary",
|
||||||
//! Some("Optional Body"),
|
//! Some("Optional Body"),
|
||||||
//! None);
|
//! None);
|
||||||
|
Loading…
Reference in New Issue
Block a user