Skip to content

Commit 881b561

Browse files
authored
Spelling (#1412)
1 parent bc19737 commit 881b561

20 files changed

+35
-35
lines changed

cross-mingw-toolchain.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This is a cmake-toolchain(5) file that can be used to cross-build
2-
# cppwinrt.exe fron Linux or other operating systems using a mingw-w64 cross
2+
# cppwinrt.exe from Linux or other operating systems using a mingw-w64 cross
33
# toolchain. This should work with both GCC-based and llvm-mingw toolchains.
44
#
55
# Example usage with external toolchain:

natvis/object_visualizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ enum class ObjectType
2626
Projection,
2727
};
2828

29-
// Metatdata for resolving a runtime class property value
29+
// Metadata for resolving a runtime class property value
3030
struct PropertyData
3131
{
3232
std::wstring iid;

nuget/Microsoft.Windows.CppWinRT.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
2828
<CppWinRTParameters Condition="'$(CppWinRTFastAbi)'=='true'">$(CppWinRTParameters) -fastabi</CppWinRTParameters>
2929
<CppWinRTPath Condition="'$(CppWinRTPackage)' == 'true' and '$(CppWinRTPath)'==''">"$(CppWinRTPackageDir)bin\"</CppWinRTPath>
3030
<CppWinRTPath Condition="'$(CppWinRTPackage)' != 'true' and '$(CppWinRTPath)'==''">"$(CppWinRTPackageDir)"</CppWinRTPath>
31-
<!-- By default enable C++/WinRT to include target platform winmds if we didn't overide sdk references and the C++ Project system isn't already adding them -->
31+
<!-- By default enable C++/WinRT to include target platform winmds if we didn't override sdk references and the C++ Project system isn't already adding them -->
3232
<!-- _PrepareForReferenceResolution adds the references if TargetPlatformIdentifier is UAP -->
3333
<CppWinRTImplicitlyExpandTargetPlatform Condition="'$(CppWinRTImplicitlyExpandTargetPlatform)' == '' and '$(CppWinRTOverrideSDKReferences)' != 'true' and '$(TargetPlatformIdentifier)' != 'UAP'">true</CppWinRTImplicitlyExpandTargetPlatform>
3434
<XamlLanguage Condition="'$(CppWinRTProjectLanguage)' == 'C++/CX'">C++</XamlLanguage>

nuget/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ It sets the following project properties and item metadata:
4141
| Link.AdditionalDependencies | WindowsApp.lib | Umbrella library for Windows Runtime imports |
4242
| Midl.AdditionalOptions | /reference ... | Enables faster compilation with winmd references (versus idl imports) |
4343
| Midl.EnableWindowsRuntime | true | Enables Windows Runtime semantics |
44-
| Midl.MetadataFileName | Unmerged\%(Filename).winmd | Generates unmerged metadata in a tempoary location |
44+
| Midl.MetadataFileName | Unmerged\%(Filename).winmd | Generates unmerged metadata in a temporary location |
4545
| Midl.GenerateClientFiles, GenerateServerFiles, GenerateStublessProxies, GenerateTypeLibrary, HeaderFileName, DllDataFileName, InterfaceIdentifierFileName, ProxyFileName, TypeLibraryName | *nul, *None, *false | Disable unnecessary output |
4646
\*If not already set
4747

@@ -114,7 +114,7 @@ void MyComponent::InitializeComponent()
114114

115115
***[Windows|Microsoft]::UI::Xaml::Markup::ComponentConnectorT***
116116

117-
A consequence of calling InitializeComponent outside construction is that Xaml runtime callbacks to IComponentConnector::Connect and IComponentConnector2::GetBindingConnector are now dispatched to the most derived implementations. Previously, these calls were dispatched directly to the class under construction, as the vtable had yet to be initialized. For objects with markup that derive from composable base classes with markup, this is a breaking change. Derived classes must now implement IComponentConnector::Connect and IComponentConnector2::GetBindingConnector by explicitly calling into the base class. The ComponentConnectorT template provides a correct implemenation for these interfaces:
117+
A consequence of calling InitializeComponent outside construction is that Xaml runtime callbacks to IComponentConnector::Connect and IComponentConnector2::GetBindingConnector are now dispatched to the most derived implementations. Previously, these calls were dispatched directly to the class under construction, as the vtable had yet to be initialized. For objects with markup that derive from composable base classes with markup, this is a breaking change. Derived classes must now implement IComponentConnector::Connect and IComponentConnector2::GetBindingConnector by explicitly calling into the base class. The ComponentConnectorT template provides a correct implementation for these interfaces:
118118

119119
```cpp
120120
struct DerivedPage : winrt::Windows::UI::Xaml::Markup::ComponentConnectorT<DerivedPageT<DerivedPage>>
@@ -147,7 +147,7 @@ For example, if the verbosity is set to minimal, then only messages with high im
147147
The default importance of C++/WinRT build messages is 'normal', but this can be overridden with the CppWinRTVerbosity property to enable throttling of C++/WinRT messages independent of the overall verbosity level.
148148

149149
Example:
150-
> msbuild project.vcxproj /vebosity:minimal /property:CppWinRTVerbosity=high ...
150+
> msbuild project.vcxproj /verbosity:minimal /property:CppWinRTVerbosity=high ...
151151

152152
For more complex analysis of build errors, the [MSBuild Binary and Structured Log Viewer](http://msbuildlog.com/) is highly recommended.
153153

test/catch.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7779,7 +7779,7 @@ namespace Catch {
77797779
result = -erfc_inv(2.0 * p);
77807780
// result *= normal distribution standard deviation (1.0) * sqrt(2)
77817781
result *= /*sd * */ ROOT_TWO;
7782-
// result += normal disttribution mean (0)
7782+
// result += normal distribution mean (0)
77837783
return result;
77847784
}
77857785

@@ -11310,7 +11310,7 @@ namespace Catch {
1131011310
std::string TagInfo::all() const {
1131111311
size_t size = 0;
1131211312
for (auto const& spelling : spellings) {
11313-
// Add 2 for the brackes
11313+
// Add 2 for the brackets
1131411314
size += spelling.size() + 2;
1131511315
}
1131611316

test/old_tests/Component/Component.idl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ namespace Component
247247
runtimeclass FastInputVector
248248
{
249249
// Don't confuse this for a high-performance vector. This is for testing fast-input binding support.
250-
// The default interface is intentionally not one of the collection intefaces to force them to be convertible for testing.
250+
// The default interface is intentionally not one of the collection interfaces to force them to be convertible for testing.
251251
[default] interface Windows.Foundation.IClosable;
252252
interface Windows.Foundation.Collections.IVector<HSTRING>;
253253
interface Windows.Foundation.Collections.IVectorView<HSTRING>;
@@ -265,7 +265,7 @@ namespace Component
265265
runtimeclass FastInputMap
266266
{
267267
// Don't confuse this for a high-performance map. This is for testing fast-input binding support.
268-
// The default interface is intentionally not one of the collection intefaces to force them to be convertible for testing.
268+
// The default interface is intentionally not one of the collection interfaces to force them to be convertible for testing.
269269
[default] interface Windows.Foundation.IClosable;
270270
interface Windows.Foundation.Collections.IMap<HSTRING, HSTRING>;
271271
interface Windows.Foundation.Collections.IMapView<HSTRING, HSTRING>;

test/old_tests/UnitTests/abi_guard.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using namespace Windows::Foundation;
1212
namespace
1313
{
1414
//
15-
// This implemenetation uses the simplest abi_enter and abi_exit methods.
15+
// This implementation uses the simplest abi_enter and abi_exit methods.
1616
//
1717
struct A : implements<A, IClosable, IStringable>
1818
{
@@ -60,7 +60,7 @@ namespace
6060
}
6161

6262
//
63-
// This implemenetation uses the abi_enter but omits the abi_exit method.
63+
// This implementation uses the abi_enter but omits the abi_exit method.
6464
//
6565
struct B : implements<B, IClosable, IStringable>
6666
{
@@ -102,7 +102,7 @@ namespace
102102
}
103103

104104
//
105-
// This implemenetation throws from the abi_enter method.
105+
// This implementation throws from the abi_enter method.
106106
//
107107
struct C : implements<C, IClosable, IStringable>
108108
{
@@ -145,7 +145,7 @@ namespace
145145
}
146146

147147
//
148-
// This implemenetation provides a nested abi_guard
148+
// This implementation provides a nested abi_guard
149149
//
150150
struct D : implements<D, IClosable, IStringable>
151151
{
@@ -223,7 +223,7 @@ namespace
223223
};
224224

225225
//
226-
// This implemenetation use an abi_guard type alias
226+
// This implementation use an abi_guard type alias
227227
//
228228
struct E : implements<E, IClosable, IStringable>
229229
{
@@ -275,7 +275,7 @@ namespace
275275
};
276276

277277
//
278-
// This implemenetation use an abi_guard type alias that thows
278+
// This implementation use an abi_guard type alias that throws
279279
//
280280
struct F : implements<F, IClosable, IStringable>
281281
{

test/old_tests/UnitTests/async.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ TEST_CASE("async, Cancel_IAsyncOperationWithProgress, 2")
10981098
}
10991099

11001100
//
1101-
// These tests confirm the implicit cancelation behavior. The obeservable behavior should be the same as above
1101+
// These tests confirm the implicit cancelation behavior. The observable behavior should be the same as above
11021102
// but the implementation relies on an exception so we confirm that the state changes occur as before.
11031103
//
11041104

test/old_tests/UnitTests/delegate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ TEST_CASE("delegate,MapChangedEventHandler")
680680
TEST_CASE("delegate,collection")
681681
{
682682
//
683-
// Mostly a compiliation test to ensure that we can create collections of delegates. This is a rare corner case that was
683+
// Mostly a compilation test to ensure that we can create collections of delegates. This is a rare corner case that was
684684
// previously not working.
685685
//
686686

test/old_tests/UnitTests/make_self.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#endif
99

1010
//
11-
// These tests ensure that the make_self function works as expected to provide direct acccess
11+
// These tests ensure that the make_self function works as expected to provide direct access
1212
// to an implementation.
1313
//
1414
// The IMakeSelf IUnknown interface is also tested as this covers an edge case in the implements

0 commit comments

Comments
 (0)