Fix rustdoc errors in components/shared (#31582)

* Fixed error in documentation in components>shared>embedder>lib.rs

* fixed documentation warning in compoenents>shared>net>request.rs

* Fixed the documentation (URL issue) in components>shared>script>lib.rs
This commit is contained in:
Aarya Khandelwal 2024-03-08 17:58:06 +05:30 committed by GitHub
parent 6b5a5147f8
commit dd6c929cc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -176,7 +176,7 @@ pub enum EmbedderMsg {
SetCursor(Cursor), SetCursor(Cursor),
/// A favicon was detected /// A favicon was detected
NewFavicon(ServoUrl), NewFavicon(ServoUrl),
/// <head> tag finished parsing /// `<head>` tag finished parsing
HeadParsed, HeadParsed,
/// The history state has changed. /// The history state has changed.
HistoryChanged(Vec<ServoUrl>, usize), HistoryChanged(Vec<ServoUrl>, usize),

View file

@ -186,7 +186,7 @@ impl RequestBody {
} }
} }
/// Step 12 of https://fetch.spec.whatwg.org/#concept-http-redirect-fetch /// Step 12 of <https://fetch.spec.whatwg.org/#concept-http-redirect-fetch>
pub fn extract_source(&mut self) { pub fn extract_source(&mut self) {
match self.source { match self.source {
BodySource::Null => panic!("Null sources should never be re-directed."), BodySource::Null => panic!("Null sources should never be re-directed."),

View file

@ -1350,6 +1350,6 @@ pub enum GamepadUpdateType {
/// <https://www.w3.org/TR/gamepad/#dfn-represents-a-standard-gamepad-axis> /// <https://www.w3.org/TR/gamepad/#dfn-represents-a-standard-gamepad-axis>
Axis(usize, f64), Axis(usize, f64),
/// Button index and input value /// Button index and input value
/// <https://www.w3.org/TR/gamepad/#dfn-represents-a-standard-gamepad-button /// <https://www.w3.org/TR/gamepad/#dfn-represents-a-standard-gamepad-button>
Button(usize, f64), Button(usize, f64),
} }