From d92cd4a2910185149e1398abde60752f88aa2f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Fourrier?= Date: Sat, 21 Aug 2021 16:32:33 +0200 Subject: [PATCH] fix doc --- src/sdl2/sensor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sdl2/sensor.rs b/src/sdl2/sensor.rs index 8e08e4ad..33c64bf6 100644 --- a/src/sdl2/sensor.rs +++ b/src/sdl2/sensor.rs @@ -27,7 +27,7 @@ use sys::SDL_SensorGetData; use sys::SDL_SensorType; impl SensorSubsystem { - /// Retrieve the total number of attached joysticks *and* controllers identified by SDL. + /// Retrieve the total number of attached sensor *and* controllers identified by SDL. #[doc(alias = "SDL_NumSensors")] pub fn num_sensors(&self) -> Result { let result = unsafe { sys::SDL_NumSensors() }; @@ -39,7 +39,7 @@ impl SensorSubsystem { } } - /// Attempt to open the joystick at index `joystick_index` and return it. + /// Attempt to open the sensor at index `sensor_index` and return it. #[doc(alias = "SDL_SensorOpen")] pub fn open(&self, sensor_index: u32) -> Result { use crate::common::IntegerOrSdlError::*; @@ -57,7 +57,7 @@ impl SensorSubsystem { } } - /// Force joystick update when not using the event loop + /// Force sensor update when not using the event loop #[inline] #[doc(alias = "SDL_SensorUpdate")] pub fn update(&self) {