From 0ad92d3a0cad7dbf520018a745eed3fb91923341 Mon Sep 17 00:00:00 2001 From: Lucas Timmins Date: Thu, 14 Feb 2019 18:01:57 +0800 Subject: [PATCH] Fix docs --- CONTRIBUTING.md | 2 +- src/lib.rs | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 23a0271..e83c1ee 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing -Smithay Wayland Clipboard is open to contributions from anyone. +Smithay Clipboard is open to contributions from anyone. ## Smithay Project diff --git a/src/lib.rs b/src/lib.rs index 4b199fb..91d2e78 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,16 +1,14 @@ -//! Smithay Wayland Clipboard +//! Smithay Clipboard //! //! Provides access to the wayland clipboard with only requirement being a WlDisplay //! object //! //! ```no_run -//! let (display, mut event_queue) = -//! Display::connect_to_env().expect("Failed to connect to the wayland server."); -//! let mut clipboard = smithay_clipboard::WaylandClipboard::new_threaded( -//! display.get_display_ptr() as *mut std::ffi::c_void, -//! ); -//! clipboard.store("Test data"); -//! println!(clipboard.load()); +//! let (display, _) = +//! Display::connect_to_env().expect("Failed to connect to the wayland server."); +//! let mut clipboard = smithay_clipboard::WaylandClipboard::new_threaded(&display); +//! clipboard.store("seat0", "Test data"); +//! println!("{}", clipboard.load("seat0")); //! ``` #![warn(missing_docs)]