Skip to content

Commit 0bd7bf2

Browse files
authored
Fix typos (#614)
1 parent cbf677f commit 0bd7bf2

File tree

13 files changed

+20
-20
lines changed

13 files changed

+20
-20
lines changed

include/wil/com.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ inline bool operator<=(const ::Microsoft::WRL::ComPtr<TLeft>& left, const com_pt
11261126

11271127
// raw COM pointer support
11281128
//
1129-
// Use these for convenience and to avoid unnecessary AddRef/Release cyles when using raw
1129+
// Use these for convenience and to avoid unnecessary AddRef/Release cycles when using raw
11301130
// pointers to access STL containers. Specify std::less<> to benefit from operator<.
11311131
//
11321132
// Example: std::set<wil::com_ptr<IUnknown>, std::less<>> set;

include/wil/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ template <typename T, std::enable_if_t<condition_b<T>, int> = 0>
10151015
void doit(const T&);
10161016
~~~
10171017
If `doit` is called with a type `T` that satisfies both `condition_a<T>` and `condition_b<T>`, the code will fail to
1018-
compile. One way to solve this issue is to change the condiiton of the second overload to
1018+
compile. One way to solve this issue is to change the condition of the second overload to
10191019
`condition_b<T> && !condition_a<T>`, however this can get quite complicated and verbose fast. With `priority_tag`, this
10201020
could get simplified down to:
10211021
~~~

include/wil/resource.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ details::out_param_ptr_t<Tcast, T> out_param_ptr(T& ptr)
883883

884884
/** Use unique_struct to define an RAII type for a trivial struct that references resources that must be cleaned up.
885885
Unique_struct wraps a trivial struct using a custom clean up function and, optionally, custom initializer function. If no custom
886-
initialier function is defined in the template then ZeroMemory is used.
886+
initializer function is defined in the template then ZeroMemory is used.
887887
Unique_struct is modeled off of std::unique_ptr. However, unique_struct inherits from the defined type instead of managing the
888888
struct through a private member variable.
889889
@@ -2653,7 +2653,7 @@ namespace details
26532653
};
26542654

26552655
// SetThreadpoolTimer(timer, nullptr, 0, 0) will cancel any pending callbacks,
2656-
// then CloseThreadpoolTimer will asynchronusly close the timer if a callback is running.
2656+
// then CloseThreadpoolTimer will asynchronously close the timer if a callback is running.
26572657
template <typename threadpool_t, PendingCallbackCancellationBehavior cancellationBehavior>
26582658
struct DestroyThreadPoolTimer
26592659
{

include/wil/result_macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ WI_ODR_PRAGMA("WIL_FreeMemory", "0")
159159
// RESULT_DIAGNOSTICS_LEVEL
160160
// This define controls the level of diagnostic instrumentation that is built into the binary as a
161161
// byproduct of using the macros. The amount of diagnostic instrumentation that is supplied is
162-
// a trade-off between diagnosibility of issues and code size and performance. The modes are:
162+
// a trade-off between diagnosability of issues and code size and performance. The modes are:
163163
// 0 - No diagnostics, smallest & fastest (subject to tail-merge)
164164
// 1 - No diagnostics, unique call sites for each macro (defeat's tail-merge)
165165
// 2 - Line number
@@ -4373,8 +4373,8 @@ namespace details
43734373

43744374
// Returns true if a debugger should be considered to be connected.
43754375
// Modules can force this on through setting g_fIsDebuggerPresent explicitly (useful for live debugging),
4376-
// they can provide a callback function by setting g_pfnIsDebuggerPresent (useful for kernel debbugging),
4377-
// and finally the user-mode check (IsDebuggerPrsent) is checked. IsDebuggerPresent is a fast call
4376+
// they can provide a callback function by setting g_pfnIsDebuggerPresent (useful for kernel debugging),
4377+
// and finally the user-mode check (IsDebuggerPresent) is checked. IsDebuggerPresent is a fast call.
43784378
inline bool IsDebuggerPresent()
43794379
{
43804380
return g_fIsDebuggerPresent ||

include/wil/win32_helpers.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ constexpr size_t guid_string_length = 38;
161161
#pragma region String and identifier comparisons
162162
// Using CompareStringOrdinal functions:
163163
//
164-
// Indentifiers require a locale-less (ordinal), and often case-insensitive, comparison (filenames, registry keys, XML node names,
165-
// etc). DO NOT use locale-sensitive (lexical) comparisons for resource identifiers (e.g.wcs*() functions in the CRT).
164+
// Identifiers require a locale-less (ordinal), and often case-insensitive, comparison (filenames, registry keys, XML node names,
165+
// etc). DO NOT use locale-sensitive (lexical) comparisons for resource identifiers (e.g. wcs*() functions in the CRT).
166166

167167
#if WIL_USE_STL && (__cpp_lib_string_view >= 201606L)
168168
/// @cond
@@ -1147,7 +1147,7 @@ inline std::basic_string<CharT> ArgvToCommandLine(RangeT&& range, ArgvToCommandL
11471147
// behavior of CommandLineToArgvW is to just preserve "interior" quotes, so we do that.
11481148
// NOTE: 'CommandLineToArgvW' treats "interior" quotes as terminating quotes when the executable
11491149
// path begins with a quote, even if the next character is not a space. This assert won't catch all
1150-
// of such issues as we may detect a space, and therefore the need to surroud the argument with
1150+
// of such issues as we may detect a space, and therefore the need to surround the argument with
11511151
// quotes, later in the string; this is best effort. Such arguments wouldn't be valid and are not
11521152
// representable anyway
11531153
WI_ASSERT((pos > 0) && !WI_IsFlagSet(flags, ArgvToCommandLineFlags::ForceQuotes) && !terminateWithQuotes);

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ set(WINRT_SOURCES
9191
${CMAKE_CURRENT_SOURCE_DIR}/WinRTTests.cpp
9292
)
9393

94-
# Source files that can compile on Win11+, but only on the Destkop partition
95-
set(WIN11_DESTKTOP_SOURCES
94+
# Source files that can compile on Win11+, but only on the Desktop partition
95+
set(WIN11_DESKTOP_SOURCES
9696
${CMAKE_CURRENT_SOURCE_DIR}/WinVerifyTrustTest.cpp
9797
)
9898

tests/CppWinRTAuthoringTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void WaitForWinRTModuleLock()
8080
{
8181
FAIL(
8282
"C++/WinRT module lock did not reach zero within 5 seconds. This likely signals a memory leak in a previous test. "
83-
"If this is the case, the issue should be reproducable locally by running with '--rng-seed <seed>' with the seed "
83+
"If this is the case, the issue should be reproducible locally by running with '--rng-seed <seed>' with the seed "
8484
"that was printed by Catch2 at the start of this executable's execution.");
8585
}
8686

tests/cpplatest/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ target_sources(witest.cpplatest PRIVATE
2121
${COMMON_SOURCES}
2222
${DOWNLEVEL_SOURCES}
2323
${WINRT_SOURCES}
24-
${WIN11_DESTKTOP_SOURCES}
24+
${WIN11_DESKTOP_SOURCES}
2525
${CPP20_SOURCES}
2626
)
2727

tests/mocking.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ struct detoured_thread_function : details::detoured_thread_function_base<detoure
451451
entryPtr = &(*entryPtr)->m_next;
452452
}
453453

454-
// Faling this check would likely imply that this object is being destroyed on the wrong thread. No matter the reason,
455-
// this should be considered a pretty fatal error
454+
// Failing this check would likely imply that this object is being destroyed on the wrong thread. No matter the
455+
// reason, this should be considered a pretty fatal error
456456
FAIL_FAST_IF_NULL(*entryPtr);
457457
*entryPtr = m_next;
458458

tests/noexcept/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ target_sources(witest.noexcept PRIVATE
2626
${COMMON_SOURCES}
2727
${DOWNLEVEL_SOURCES}
2828
${WINRT_SOURCES}
29-
${WIN11_DESTKTOP_SOURCES}
29+
${WIN11_DESKTOP_SOURCES}
3030
)

0 commit comments

Comments
 (0)