Skip to content

Commit

Permalink
Doc comments -> regular comments
Browse files Browse the repository at this point in the history
  • Loading branch information
msub2 committed Feb 12, 2024
1 parent da6faed commit cc05dd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/script/dom/globalscope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3180,7 +3180,7 @@ impl GlobalScope {
pub fn receive_new_gamepad_button_or_axis(&self, index: usize, update_type: GamepadUpdateType) {
let this = Trusted::new(&*self);

/// <https://w3c.github.io/gamepad/#dfn-update-gamepad-state>
// <https://w3c.github.io/gamepad/#dfn-update-gamepad-state>
self.gamepad_task_source()
.queue(
task!(update_gamepad_state: move || {
Expand Down
8 changes: 4 additions & 4 deletions ports/servoshell/webview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ where
let index = GamepadIndex(event.id.into());
match event.event {
EventType::ButtonChanged(button, value, _) => {
/// Map button index and value to represent Standard Gamepad button
/// <https://www.w3.org/TR/gamepad/#dfn-represents-a-standard-gamepad-button>
// Map button index and value to represent Standard Gamepad button
// <https://www.w3.org/TR/gamepad/#dfn-represents-a-standard-gamepad-button>
let mapped_index: usize = match button {
gilrs::Button::South => 0,
gilrs::Button::East => 1,
Expand Down Expand Up @@ -161,8 +161,8 @@ where
}
},
EventType::AxisChanged(axis, value, _) => {
/// Map axis index and value to represent Standard Gamepad axis
/// <https://www.w3.org/TR/gamepad/#dfn-represents-a-standard-gamepad-axis>
// Map axis index and value to represent Standard Gamepad axis
// <https://www.w3.org/TR/gamepad/#dfn-represents-a-standard-gamepad-axis>
let mapped_axis: usize = match axis {
gilrs::Axis::LeftStickX => 0,
gilrs::Axis::LeftStickY => 1,
Expand Down

0 comments on commit cc05dd9

Please sign in to comment.