Fix examples
This commit is contained in:
parent
b50ff703ad
commit
557ebbc93f
@ -8,9 +8,9 @@ fn main() {
|
|||||||
libnotify::Notification::new("Summary", Some("Optional Body"), None);
|
libnotify::Notification::new("Summary", Some("Optional Body"), None);
|
||||||
// Show the notification
|
// Show the notification
|
||||||
n.show().unwrap();
|
n.show().unwrap();
|
||||||
// You can also use the .show() convenience method on the context
|
// Update the existent notification
|
||||||
n.update("I am another notification", None, None).unwrap();
|
n.update("I am another notification", None, None).unwrap();
|
||||||
// Show the update notification
|
// Show the updated notification
|
||||||
n.show().unwrap();
|
n.show().unwrap();
|
||||||
// We are done, deinit
|
// We are done, deinit
|
||||||
libnotify::uninit();
|
libnotify::uninit();
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
//! None);
|
//! None);
|
||||||
//! // Show the notification
|
//! // Show the notification
|
||||||
//! n.show().unwrap();
|
//! n.show().unwrap();
|
||||||
//! // You can also use the .show() convenience method on the context
|
//! // Update the existent notification
|
||||||
//! n.update("I am another notification", None, None).unwrap();
|
//! n.update("I am another notification", None, None).unwrap();
|
||||||
//! // Show the update notification
|
//! // Show the updated notification
|
||||||
//! n.show().unwrap();
|
//! n.show().unwrap();
|
||||||
//! // We are done, deinit
|
//! // We are done, deinit
|
||||||
//! libnotify::uninit();
|
//! libnotify::uninit();
|
||||||
|
Loading…
Reference in New Issue
Block a user