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
|
@ -48,7 +48,7 @@ impl MediaMetadata {
|
|||
reflect_dom_object_with_proto(Box::new(MediaMetadata::new_inherited(init)), global, proto)
|
||||
}
|
||||
|
||||
/// https://w3c.github.io/mediasession/#dom-mediametadata-mediametadata
|
||||
/// <https://w3c.github.io/mediasession/#dom-mediametadata-mediametadata>
|
||||
#[allow(non_snake_case)]
|
||||
pub fn Constructor(
|
||||
window: &Window,
|
||||
|
@ -70,34 +70,34 @@ impl MediaMetadata {
|
|||
}
|
||||
|
||||
impl MediaMetadataMethods for MediaMetadata {
|
||||
/// https://w3c.github.io/mediasession/#dom-mediametadata-title
|
||||
/// <https://w3c.github.io/mediasession/#dom-mediametadata-title>
|
||||
fn Title(&self) -> DOMString {
|
||||
self.title.borrow().clone()
|
||||
}
|
||||
|
||||
/// https://w3c.github.io/mediasession/#dom-mediametadata-title
|
||||
/// <https://w3c.github.io/mediasession/#dom-mediametadata-title>
|
||||
fn SetTitle(&self, value: DOMString) {
|
||||
*self.title.borrow_mut() = value;
|
||||
self.queue_update_metadata_algorithm();
|
||||
}
|
||||
|
||||
/// https://w3c.github.io/mediasession/#dom-mediametadata-artist
|
||||
/// <https://w3c.github.io/mediasession/#dom-mediametadata-artist>
|
||||
fn Artist(&self) -> DOMString {
|
||||
self.artist.borrow().clone()
|
||||
}
|
||||
|
||||
/// https://w3c.github.io/mediasession/#dom-mediametadata-artist
|
||||
/// <https://w3c.github.io/mediasession/#dom-mediametadata-artist>
|
||||
fn SetArtist(&self, value: DOMString) {
|
||||
*self.artist.borrow_mut() = value;
|
||||
self.queue_update_metadata_algorithm();
|
||||
}
|
||||
|
||||
/// https://w3c.github.io/mediasession/#dom-mediametadata-album
|
||||
/// <https://w3c.github.io/mediasession/#dom-mediametadata-album>
|
||||
fn Album(&self) -> DOMString {
|
||||
self.album.borrow().clone()
|
||||
}
|
||||
|
||||
/// https://w3c.github.io/mediasession/#dom-mediametadata-album
|
||||
/// <https://w3c.github.io/mediasession/#dom-mediametadata-album>
|
||||
fn SetAlbum(&self, value: DOMString) {
|
||||
*self.album.borrow_mut() = value;
|
||||
self.queue_update_metadata_algorithm();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue