mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
rustdoc: Fix many rustdoc errors (#31147)
This fixes many rustdoc errors that occur due to raw URLs in rustdoc comments as well as unescaped Rust code that should be in backticks.
This commit is contained in:
parent
d7de206dbd
commit
5c1723c983
185 changed files with 939 additions and 942 deletions
|
@ -82,7 +82,7 @@ impl XRSystem {
|
|||
self.active_immersive_session.set(Some(session))
|
||||
}
|
||||
|
||||
/// https://immersive-web.github.io/webxr/#ref-for-eventdef-xrsession-end
|
||||
/// <https://immersive-web.github.io/webxr/#ref-for-eventdef-xrsession-end>
|
||||
pub fn end_session(&self, session: &XRSession) {
|
||||
// Step 3
|
||||
if let Some(active) = self.active_immersive_session.get() {
|
||||
|
@ -110,7 +110,7 @@ impl Into<SessionMode> for XRSessionMode {
|
|||
}
|
||||
|
||||
impl XRSystemMethods for XRSystem {
|
||||
/// https://immersive-web.github.io/webxr/#dom-xr-issessionsupported
|
||||
/// <https://immersive-web.github.io/webxr/#dom-xr-issessionsupported>
|
||||
fn IsSessionSupported(&self, mode: XRSessionMode) -> Rc<Promise> {
|
||||
// XXXManishearth this should select an XR device first
|
||||
let promise = Promise::new(&self.global());
|
||||
|
@ -153,7 +153,7 @@ impl XRSystemMethods for XRSystem {
|
|||
promise
|
||||
}
|
||||
|
||||
/// https://immersive-web.github.io/webxr/#dom-xr-requestsession
|
||||
/// <https://immersive-web.github.io/webxr/#dom-xr-requestsession>
|
||||
#[allow(unsafe_code)]
|
||||
fn RequestSession(
|
||||
&self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue