diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs index 5101389cfa1ec3..30e1fb4750310b 100644 --- a/crates/bevy_window/src/window.rs +++ b/crates/bevy_window/src/window.rs @@ -868,6 +868,8 @@ pub struct WindowDescriptor { /// The canvas element. /// /// If set, this canvas element will be used, rather than creating a new one. + /// + /// See [WindowDescriptor::set_canvas_from_selector] to set it via a CSS selector. #[cfg(target_arch = "wasm32")] pub canvas: Option, /// Whether or not to fit the canvas element's size to its parent element's size.