mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Fix typos with cspell (#6972)
This commit is contained in:
@@ -90,7 +90,7 @@ void ResetEvent(WPI_EventHandle handle);
|
||||
* multiple-consumer scenario.
|
||||
*
|
||||
* @param initialCount initial value for the semaphore's internal counter
|
||||
* @param maximumCount maximum value for the samephore's internal counter
|
||||
* @param maximumCount maximum value for the semaphore's internal counter
|
||||
* @return Semaphore handle
|
||||
*/
|
||||
WPI_SemaphoreHandle CreateSemaphore(int initialCount = 0,
|
||||
@@ -318,7 +318,7 @@ class Semaphore final {
|
||||
* Constructor.
|
||||
*
|
||||
* @param initialCount initial value for the semaphore's internal counter
|
||||
* @param maximumCount maximum value for the samephore's internal counter
|
||||
* @param maximumCount maximum value for the semaphore's internal counter
|
||||
*/
|
||||
explicit Semaphore(int initialCount = 0, int maximumCount = INT_MAX)
|
||||
: m_handle{CreateSemaphore(initialCount, maximumCount)} {}
|
||||
@@ -491,7 +491,7 @@ void WPI_ResetEvent(WPI_EventHandle handle);
|
||||
* multiple-consumer scenario.
|
||||
*
|
||||
* @param initial_count initial value for the semaphore's internal counter
|
||||
* @param maximum_count maximum value for the samephore's internal counter
|
||||
* @param maximum_count maximum value for the semaphore's internal counter
|
||||
* @return Semaphore handle
|
||||
*/
|
||||
WPI_SemaphoreHandle WPI_CreateSemaphore(int initial_count, int maximum_count);
|
||||
|
||||
@@ -55,7 +55,7 @@ void WPI_InitString(struct WPI_String* wpiString, const char* utf8String);
|
||||
|
||||
/**
|
||||
* Initializes a WPI_String from a UTF-8 string and length.
|
||||
* If input string is null or 0 length, initilizes output to 0 length.
|
||||
* If input string is null or 0 length, initializes output to 0 length.
|
||||
* The input string does not need to be null terminated.
|
||||
*
|
||||
* The lifetime of the output string is the lifetime of the input string.
|
||||
|
||||
@@ -166,7 +166,7 @@ inline T UnpackStruct(std::span<const uint8_t> data, const I&... info) {
|
||||
* @tparam Offset starting offset
|
||||
* @tparam N number of objects
|
||||
* @param data raw struct data
|
||||
* @return Desrialized array
|
||||
* @return Deserialized array
|
||||
*/
|
||||
template <StructSerializable T, size_t Offset, size_t N>
|
||||
inline wpi::array<T, N> UnpackStructArray(std::span<const uint8_t> data) {
|
||||
|
||||
Reference in New Issue
Block a user