Skip to content

Commit

Permalink
Fix some broken links in the documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblandy authored and elinorbgr committed Oct 3, 2023
1 parent 8671934 commit 8581b9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions wayland-backend/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ pub enum ArgumentType {
Object(AllowNull),
/// Id of a newly created wayland object
NewId,
/// Vec<u8>
/// `Vec<u8>`
Array,
/// A file descriptor argument. Represented by a [`RawFd`].
///
/// [`RawFd`]: std::os::fd::RawFd
Fd,
}

Expand Down Expand Up @@ -60,12 +62,14 @@ pub enum Argument<Id, Fd> {
Object(Id),
/// Id of a newly created wayland object
NewId(Id),
/// Vec<u8>
/// `Vec<u8>`
///
/// The value is boxed to reduce the stack size of Argument. The performance
/// impact is negligible as `array` arguments are pretty rare in the protocol.
Array(Box<Vec<u8>>),
/// A file descriptor argument. Represented by a [`RawFd`].
///
/// [`RawFd`]: std::os::fd::RawFd
Fd(Fd),
}

Expand Down
4 changes: 2 additions & 2 deletions wayland-client/src/event_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use crate::{conn::SyncData, Connection, DispatchError, Proxy};
///
/// In the rare case of an interface with *events* creating new objects (in the core protocol, the only
/// instance of this is the `wl_data_device.data_offer` event), you'll need to implement the
/// [`Dispatch::event_created_child()`] method. See the [`event_created_child!`](event_created_child!) macro
/// [`Dispatch::event_created_child()`] method. See the [`event_created_child!`](macro.event_created_child.html) macro
/// for a simple way to do this.
///
/// ## Modularity
Expand Down Expand Up @@ -120,7 +120,7 @@ where
/// Method used to initialize the user-data of objects created by events
///
/// If the interface does not have any such event, you can ignore it. If not, the
/// [`event_created_child!`](event_created_child!) macro is provided for overriding it.
/// [`event_created_child!`](macro.event_created_child.html) macro is provided for overriding it.
#[cfg_attr(coverage, coverage(off))]
fn event_created_child(opcode: u16, _qhandle: &QueueHandle<State>) -> Arc<dyn ObjectData> {
panic!(
Expand Down

0 comments on commit 8581b9d

Please sign in to comment.