mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -174,19 +174,19 @@ impl NavigatorMethods for Navigator {
|
|||
.or_init(|| Permissions::new(&self.global()))
|
||||
}
|
||||
|
||||
/// https://immersive-web.github.io/webxr/#dom-navigator-xr
|
||||
/// <https://immersive-web.github.io/webxr/#dom-navigator-xr>
|
||||
fn Xr(&self) -> DomRoot<XRSystem> {
|
||||
self.xr
|
||||
.or_init(|| XRSystem::new(&self.global().as_window()))
|
||||
}
|
||||
|
||||
/// https://w3c.github.io/mediacapture-main/#dom-navigator-mediadevices
|
||||
/// <https://w3c.github.io/mediacapture-main/#dom-navigator-mediadevices>
|
||||
fn MediaDevices(&self) -> DomRoot<MediaDevices> {
|
||||
self.mediadevices
|
||||
.or_init(|| MediaDevices::new(&self.global()))
|
||||
}
|
||||
|
||||
/// https://w3c.github.io/mediasession/#dom-navigator-mediasession
|
||||
/// <https://w3c.github.io/mediasession/#dom-navigator-mediasession>
|
||||
fn MediaSession(&self) -> DomRoot<MediaSession> {
|
||||
self.mediasession.or_init(|| {
|
||||
// There is a single MediaSession instance per Pipeline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue