Browse Source

Fix examples

git-deps
Ospald, Julian 6 years ago
parent
commit
557ebbc93f
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      examples/show.rs
  2. +2
    -2
      src/lib.rs

+ 2
- 2
examples/show.rs View File

@@ -8,9 +8,9 @@ fn main() {
libnotify::Notification::new("Summary", Some("Optional Body"), None);
// Show the notification
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();
// Show the update notification
// Show the updated notification
n.show().unwrap();
// We are done, deinit
libnotify::uninit();


+ 2
- 2
src/lib.rs View File

@@ -12,9 +12,9 @@
//! None);
//! // Show the notification
//! 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();
//! // Show the update notification
//! // Show the updated notification
//! n.show().unwrap();
//! // We are done, deinit
//! libnotify::uninit();


Loading…
Cancel
Save