Skip to content

Commit 1f6f4f5

Browse files
fix: doc is not shown for set_fallback api (#718)
1 parent ff3b13d commit 1f6f4f5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

wayland-cursor/src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)