Skip to content

Commit

Permalink
Fix rustdoc errors in components/shared (#31582)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Aaryakhandelwal committed Mar 8, 2024
1 parent 6b5a514 commit dd6c929
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/shared/embedder/lib.rs
Expand Up @@ -176,7 +176,7 @@ pub enum EmbedderMsg {
SetCursor(Cursor),
/// A favicon was detected
NewFavicon(ServoUrl),
/// <head> tag finished parsing
/// `<head>` tag finished parsing
HeadParsed,
/// The history state has changed.
HistoryChanged(Vec<ServoUrl>, usize),
Expand Down
2 changes: 1 addition & 1 deletion components/shared/net/request.rs
Expand Up @@ -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) {
match self.source {
BodySource::Null => panic!("Null sources should never be re-directed."),
Expand Down
2 changes: 1 addition & 1 deletion components/shared/script/lib.rs
Expand Up @@ -1350,6 +1350,6 @@ pub enum GamepadUpdateType {
/// <https://www.w3.org/TR/gamepad/#dfn-represents-a-standard-gamepad-axis>
Axis(usize, f64),
/// 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),
}

0 comments on commit dd6c929

Please sign in to comment.