fix typos

This commit is contained in:
Brenton Bostick
2025-07-27 10:39:20 -04:00
committed by Sam Lantinga
parent 2ed1c35ca6
commit f361034ac3
23 changed files with 34 additions and 34 deletions

View File

@@ -403,7 +403,7 @@ typedef enum
NSLog( @"CoreBluetooth BLE hardware is powered on and ready" );
// at startup, if we have no already attached peripherals, do a 20s scan for new unpaired devices,
// otherwise callers should occaisionally do additional scans. we don't want to continuously be
// otherwise callers should occasionally do additional scans. we don't want to continuously be
// scanning because it drains battery, causes other nearby people to have a hard time pairing their
// Steam Controllers, and may also trigger firmware weirdness when a device attempts to start
// the pairing sequence multiple times concurrently
@@ -750,7 +750,7 @@ static void process_pending_events(void)
- (void)peripheral:(CBPeripheral *)peripheral didUpdateNotificationStateForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error
{
NSLog( @"didUpdateNotifcationStateForCharacteristic %@ (%@)", characteristic, error );
NSLog( @"didUpdateNotificationStateForCharacteristic %@ (%@)", characteristic, error );
}
@end

View File

@@ -147,7 +147,7 @@ static void register_error_str(wchar_t **error_str, const char *msg)
#endif
}
/* Semilar to register_error_str, but allows passing a format string with va_list args into this function. */
/* Similar to register_error_str, but allows passing a format string with va_list args into this function. */
static void register_error_str_vformat(wchar_t **error_str, const char *format, va_list args)
{
char msg[256];

View File

@@ -1424,7 +1424,7 @@ void HID_API_EXPORT hid_close(hid_device *dev)
UPD: The crash part was true in/until some version of macOS.
Starting with macOS 10.15, there is an opposite effect in some environments:
crash happenes if IOHIDDeviceClose() is not called.
crash happens if IOHIDDeviceClose() is not called.
Not leaking a resource in all tested environments.
*/
if (is_macos_10_10_or_greater || !dev->disconnected) {

View File

@@ -96,7 +96,7 @@ static void register_error_str(wchar_t **error_str, const char *msg)
*error_str = utf8_to_wchar_t(msg);
}
/* Semilar to register_error_str, but allows passing a format string with va_list args into this function. */
/* Similar to register_error_str, but allows passing a format string with va_list args into this function. */
static void register_error_str_vformat(wchar_t **error_str, const char *format, va_list args)
{
char msg[256];