File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -218,15 +218,15 @@ impl CursorTheme {
218218 ///
219219 /// For example, this defines a generic fallback cursor image and uses it for all missing cursors:
220220 /// ```ignore
221- /// # use wayland_cursor::CursorTheme;
222- /// # use wayland_client::{Connection, backend::InvalidId, protocol::wl_shm};
223- /// # fn example(conn: &Connection, shm: wl_shm::WlShm, size: u32) -> Result<CursorTheme, InvalidId> {
224- /// # let mut theme = CursorTheme::load_or(conn, shm, "default", size)?;
225- /// # theme.set_callback(|name, size| {
226- /// # include_bytes!("./icons/default")
227- /// # });
228- /// # Ok(theme)
229- /// # }
221+ /// use wayland_cursor::CursorTheme;
222+ /// use wayland_client::{Connection, backend::InvalidId, protocol::wl_shm};
223+ /// fn example(conn: &Connection, shm: wl_shm::WlShm, size: u32) -> Result<CursorTheme, InvalidId> {
224+ /// let mut theme = CursorTheme::load_or(conn, shm, "default", size)?;
225+ /// theme.set_callback(|name, size| {
226+ /// include_bytes!("./icons/default")
227+ /// });
228+ /// Ok(theme)
229+ /// }
230230 /// ```
231231 pub fn set_callback < F > ( & mut self , fallback : F )
232232 where
You can’t perform that action at this time.
0 commit comments