Fix typos with cspell (#6972)

This commit is contained in:
Gold856
2024-08-17 10:44:34 -04:00
committed by GitHub
parent 780b1e0391
commit b12b83aa89
83 changed files with 151 additions and 152 deletions

View File

@@ -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);

View File

@@ -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.

View File

@@ -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) {