From 080740deaf9dbbaae0c5c4ee1d751c5aa1b7da33 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Wed, 20 Jan 2021 19:43:46 -0500 Subject: [PATCH] Add doc example --- src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index fcce4c1..4d4d9ef 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,12 @@ +//! Small, cross-platform Rust crate for sending system notifications +//! +//! ## Examples +//! +//! ```rust +//! notifica::notify("Hello", "World! 🌍"); +//! ``` + + #[cfg(target_os = "macos")] extern crate mac_notification_sys; -- 2.51.2