Skip to content

Commit 116799f

Browse files
MaherJendoubijkotalik
authored andcommitted
Contributing: Fixed some typos (#18331)
1 parent 6dd3d6e commit 116799f

File tree

58 files changed

+285
-285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+285
-285
lines changed

eng/scripts/StartDumpCollectionForHangingBuilds.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Write-Output "Watching processes $($CandidateProcessNames -join ', ')";
5454
# This script registers as a scheduled job. This scheduled job executes after $WakeTime.
5555
# When the scheduled job executes, it runs procdump on all alive processes whose name matches $CandidateProcessNames.
5656
# The dumps are placed in $ProcDumpOutputPath
57-
# If the build completes sucessfully in less than $WakeTime, a final step unregisters the job.
57+
# If the build completes successfully in less than $WakeTime, a final step unregisters the job.
5858

5959
# Create a unique identifier for the job name
6060
$JobName = "CaptureDumps" + (New-Guid).ToString("N");

src/Components/Server/src/Circuits/RemoteRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal class RemoteRenderer : Microsoft.AspNetCore.Components.RenderTree.Rende
2525
private bool _disposing = false;
2626

2727
/// <summary>
28-
/// Notifies when a rendering exception occured.
28+
/// Notifies when a rendering exception occurred.
2929
/// </summary>
3030
public event EventHandler<Exception> UnhandledException;
3131

src/Components/Server/src/ComponentHub.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ private static class Log
302302
LoggerMessage.Define<CircuitId, string, string>(LogLevel.Debug, new EventId(7, "CreatedCircuit"), "Created circuit '{CircuitId}' with secret '{CircuitIdSecret}' for '{ConnectionId}'");
303303

304304
private static readonly Action<ILogger, string, Exception> _invalidCircuitId =
305-
LoggerMessage.Define<string>(LogLevel.Debug, new EventId(8, "InvalidCircuitId"), "ConnectAsync recieved an invalid circuit id '{CircuitIdSecret}'");
305+
LoggerMessage.Define<string>(LogLevel.Debug, new EventId(8, "InvalidCircuitId"), "ConnectAsync received an invalid circuit id '{CircuitIdSecret}'");
306306

307307
public static void ReceivedConfirmationForBatch(ILogger logger, long batchId) => _receivedConfirmationForBatch(logger, batchId, null);
308308

src/Components/benchmarkapps/BlazingPizza.Server/ToppingsService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public IList<Topping> GetToppings()
9090
},
9191
new Topping()
9292
{
93-
Name = "Fresh tomatos",
93+
Name = "Fresh tomatoes",
9494
Price = 1.50m,
9595
},
9696
new Topping()

src/Features/JsonPatch/test/IntegrationTests/AnonymousObjectIntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void MoveProperty_ShouldFail()
147147
}
148148

149149
[Fact]
150-
public void TestStringProperty_IsSucessful()
150+
public void TestStringProperty_IsSuccessful()
151151
{
152152
// Arrange
153153
var targetObject = new

src/Features/JsonPatch/test/IntegrationTests/ExpandoObjectIntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void ShouldNotReplaceProperty_WithDifferentCase()
106106
}
107107

108108
[Fact]
109-
public void TestIntegerProperty_IsSucessful()
109+
public void TestIntegerProperty_IsSuccessful()
110110
{
111111
// Arrange
112112
dynamic targetObject = new ExpandoObject();

src/Hosting/Hosting/src/Internal/HostingApplicationDiagnostics.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void RequestEnd(HttpContext httpContext, Exception exception, HostingAppl
9191
var startTimestamp = context.StartTimestamp;
9292
long currentTimestamp = 0;
9393

94-
// If startTimestamp was 0, then Information logging wasn't enabled at for this request (and calcuated time will be wildly wrong)
94+
// If startTimestamp was 0, then Information logging wasn't enabled at for this request (and calculated time will be wildly wrong)
9595
// Is used as proxy to reduce calls to virtual: _logger.IsEnabled(LogLevel.Information)
9696
if (startTimestamp != 0)
9797
{
@@ -109,7 +109,7 @@ public void RequestEnd(HttpContext httpContext, Exception exception, HostingAppl
109109

110110
if (exception == null)
111111
{
112-
// No exception was thrown, request was sucessful
112+
// No exception was thrown, request was successful
113113
if (_diagnosticListener.IsEnabled(DeprecatedDiagnosticsEndRequestKey))
114114
{
115115
// Diagnostics is enabled for EndRequest, but it may not be for BeginRequest
@@ -317,7 +317,7 @@ private Activity StartActivity(Activity activity, HttpContext httpContext)
317317
private void StopActivity(Activity activity, HttpContext httpContext)
318318
{
319319
// Stop sets the end time if it was unset, but we want it set before we issue the write
320-
// so we do it now.
320+
// so we do it now.
321321
if (activity.Duration == TimeSpan.Zero)
322322
{
323323
activity.SetEndTime(DateTime.UtcNow);

src/Http/Routing/src/DefaultLinkGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public static class EventIds
383383
LogLevel.Debug,
384384
EventIds.TemplateFailedExpansion,
385385
"Failed to process the template {Template} for {Endpoint}. " +
386-
"The failure occured while expanding the template with values {Values} " +
386+
"The failure occurred while expanding the template with values {Values} " +
387387
"This is usually due to a missing or empty value in a complex segment");
388388

389389
private static readonly Action<ILogger, IEnumerable<string>, string, Exception> _linkGenerationSucceeded = LoggerMessage.Define<IEnumerable<string>, string>(
@@ -442,7 +442,7 @@ public static void TemplateFailedExpansion(ILogger logger, RouteEndpoint endpoin
442442
}
443443
}
444444

445-
public static void LinkGenerationSucceeded(ILogger logger, IEnumerable<Endpoint> endpoints, string uri)
445+
public static void LinkGenerationSucceeded(ILogger logger, IEnumerable<Endpoint> endpoints, string uri)
446446
{
447447
// Checking level again to avoid allocation on the common path
448448
if (logger.IsEnabled(LogLevel.Debug))

src/Http/Routing/test/UnitTests/Matching/BarebonesMatcherConformanceTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public override Task Match_SingleParameter()
1515
{
1616
return Task.CompletedTask;
1717
}
18-
18+
1919
// Route values not supported
2020
[Fact]
2121
public override Task Match_SingleParameter_TrailingSlash()
@@ -25,7 +25,7 @@ public override Task Match_SingleParameter_TrailingSlash()
2525

2626
// Route values not supported
2727
[Fact]
28-
public override Task Match_SingleParameter_WierdNames()
28+
public override Task Match_SingleParameter_WeirdNames()
2929
{
3030
return Task.CompletedTask;
3131
}
@@ -35,7 +35,7 @@ public override Task Match_SingleParameter_WierdNames()
3535
[InlineData(null, null, null, null)]
3636
public override Task Match_MultipleParameters(string template, string path, string[] keys, string[] values)
3737
{
38-
GC.KeepAlive(new object [] { template, path, keys, values });
38+
GC.KeepAlive(new object[] { template, path, keys, values });
3939
return Task.CompletedTask;
4040
}
4141

src/Http/Routing/test/UnitTests/Matching/FullFeaturedMatcherConformanceTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public virtual async Task Match_CatchAllParameter(string template, string path,
173173

174174
// Historically catchall segments don't match an empty segment, but only if it's
175175
// the first one. So `/a/b//` would match, but `/a//` would not. This is pretty
176-
// wierd and inconsistent with the intent of using a catch all. The DfaMatcher
176+
// weird and inconsistent with the intent of using a catch all. The DfaMatcher
177177
// fixes this issue.
178178
[Theory]
179179
[InlineData("/{a}/{*b=b}", "/a///", new[] { "a", "b", }, new[] { "a", "//" })]
@@ -313,7 +313,7 @@ public virtual async Task NotMatch_OptionalSeparator(string template, string pat
313313
[InlineData("(Controller).mvc", "/(Controller).mvc", new string[] { }, new string[] { })]
314314
[InlineData("Controller.mvc/ ", "/Controller.mvc/ ", new string[] { }, new string[] { })]
315315
[InlineData("Controller.mvc ", "/Controller.mvc ", new string[] { }, new string[] { })]
316-
public virtual async Task Match_WierdCharacterCases(string template, string path, string[] keys, string[] values)
316+
public virtual async Task Match_WeirdCharacterCases(string template, string path, string[] keys, string[] values)
317317
{
318318
// Arrange
319319
var (matcher, endpoint) = CreateMatcher(template);

src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.SingleEndpoint.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public virtual async Task Match_SingleLiteralSegment_Unicode(string template, st
8484
MatcherAssert.AssertMatch(httpContext, endpoint);
8585
}
8686

87-
// Matchers should operate on the decoded representation - a matcher that calls
87+
// Matchers should operate on the decoded representation - a matcher that calls
8888
// `httpContext.Request.Path.ToString()` will break this test.
8989
[Theory]
9090
[InlineData("/S%mple", "/S%mple")]
@@ -239,7 +239,7 @@ public virtual async Task Match_SingleParameter_TrailingSlash()
239239
}
240240

241241
[Fact]
242-
public virtual async Task Match_SingleParameter_WierdNames()
242+
public virtual async Task Match_SingleParameter_WeirdNames()
243243
{
244244
// Arrange
245245
var (matcher, endpoint) = CreateMatcher("/foo/{ }/{.!$%}/{dynamic.data}");

src/Http/Routing/test/UnitTests/Patterns/RoutePatternParserTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public void Parse_ComplexSegment_OptionalParameterFollowingPeriod_ThreeParameter
239239
}
240240

241241
[Fact]
242-
public void Parse_ComplexSegment_ThreeParametersSeperatedByPeriod()
242+
public void Parse_ComplexSegment_ThreeParametersSeparatedByPeriod()
243243
{
244244
// Arrange
245245
var template = "{p1}.{p2}.{p3}";
@@ -352,7 +352,7 @@ public void Parse_RegularExpressions(string template, string constraint)
352352
[Theory]
353353
[InlineData(@"{p1:regex(^\d{{3}}-\d{{3}}-\d{{4}}}$)}")] // extra }
354354
[InlineData(@"{p1:regex(^\d{{3}}-\d{{3}}-\d{{4}}$)}}")] // extra } at the end
355-
[InlineData(@"{{p1:regex(^\d{{3}}-\d{{3}}-\d{{4}}$)}")] // extra { at the begining
355+
[InlineData(@"{{p1:regex(^\d{{3}}-\d{{3}}-\d{{4}}$)}")] // extra { at the beginning
356356
[InlineData(@"{p1:regex(([}])\w+}")] // Not escaped }
357357
[InlineData(@"{p1:regex(^\d{{3}}-\d{{3}}-\d{{4}$)}")] // Not escaped }
358358
[InlineData(@"{p1:regex(abc)")]
@@ -400,7 +400,7 @@ public void Parse_ComplexSegment_OptionalParameter_NotTheLastPart(
400400
[InlineData("..{p2?}", "..")]
401401
[InlineData("{p1}.abc.{p2?}", ".abc.")]
402402
[InlineData("{p1}{p2?}", "{p1}")]
403-
public void Parse_ComplexSegment_OptionalParametersSeperatedByPeriod_Invalid(string template, string parameter)
403+
public void Parse_ComplexSegment_OptionalParametersSeparatedByPeriod_Invalid(string template, string parameter)
404404
{
405405
// Act and Assert
406406
ExceptionAssert.Throws<RoutePatternException>(

src/Http/Routing/test/UnitTests/Template/TemplateParserTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public void Parse_ComplexSegment_OptionalParameterFollowingPeriod_ThreeParameter
325325
}
326326

327327
[Fact]
328-
public void Parse_ComplexSegment_ThreeParametersSeperatedByPeriod()
328+
public void Parse_ComplexSegment_ThreeParametersSeparatedByPeriod()
329329
{
330330
// Arrange
331331
var template = "{p1}.{p2}.{p3}";
@@ -498,7 +498,7 @@ public void Parse_RegularExpressions(string template, string constraint)
498498
[Theory]
499499
[InlineData(@"{p1:regex(^\d{{3}}-\d{{3}}-\d{{4}}}$)}")] // extra }
500500
[InlineData(@"{p1:regex(^\d{{3}}-\d{{3}}-\d{{4}}$)}}")] // extra } at the end
501-
[InlineData(@"{{p1:regex(^\d{{3}}-\d{{3}}-\d{{4}}$)}")] // extra { at the begining
501+
[InlineData(@"{{p1:regex(^\d{{3}}-\d{{3}}-\d{{4}}$)}")] // extra { at the beginning
502502
[InlineData(@"{p1:regex(([}])\w+}")] // Not escaped }
503503
[InlineData(@"{p1:regex(^\d{{3}}-\d{{3}}-\d{{4}$)}")] // Not escaped }
504504
[InlineData(@"{p1:regex(abc)")]
@@ -550,7 +550,7 @@ public void Parse_ComplexSegment_OptionalParameter_NotTheLastPart(
550550
[InlineData("{p1}.abc.{p2?}", ".abc.")]
551551
[InlineData("{p1}{p2?}", "{p1}")]
552552
[ReplaceCulture]
553-
public void Parse_ComplexSegment_OptionalParametersSeperatedByPeriod_Invalid(string template, string parameter)
553+
public void Parse_ComplexSegment_OptionalParametersSeparatedByPeriod_Invalid(string template, string parameter)
554554
{
555555
// Act and Assert
556556
ExceptionAssert.Throws<ArgumentException>(

src/Http/WebUtilities/src/FormPipeReader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ private void ParseFormValuesFast(ReadOnlySpan<byte> span,
167167
// If we're not in the final block, then consume nothing
168168
if (!isFinalBlock)
169169
{
170-
// Don't buffer indefinately
170+
// Don't buffer indefinitely
171171
if ((uint)span.Length > (uint)KeyLengthLimit + (uint)ValueLengthLimit)
172172
{
173173
ThrowKeyOrValueTooLargeException();
@@ -236,7 +236,7 @@ private void ParseValuesSlow(
236236
{
237237
if (!isFinalBlock)
238238
{
239-
// Don't buffer indefinately
239+
// Don't buffer indefinitely
240240
if ((uint)(sequenceReader.Consumed - consumedBytes) > (uint)KeyLengthLimit + (uint)ValueLengthLimit)
241241
{
242242
ThrowKeyOrValueTooLargeException();

src/Http/WebUtilities/src/QueryHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private static string AddQueryString(
8585
var anchorIndex = uri.IndexOf('#');
8686
var uriToBeAppended = uri;
8787
var anchorText = "";
88-
// If there is an anchor, then the query string must be inserted before its first occurence.
88+
// If there is an anchor, then the query string must be inserted before its first occurrence.
8989
if (anchorIndex != -1)
9090
{
9191
anchorText = uri.Substring(anchorIndex);

src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/IIS-Common/Include/hashtable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ HASH_TABLE<_Record,_Key>::InsertRecord(
406406
)
407407
/*++
408408
This method inserts a node for this record and also empty nodes for paths
409-
in the heirarchy leading upto this path
409+
in the hierarchy leading upto this path
410410
411411
The insert is done under only a read-lock - this is possible by keeping
412412
the hashes in a bucket in increasing order and using interlocked operations

src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/IIS-Common/Include/http_xp.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extern "C" {
5555
#define HTTP_INITIALIZE_SERVER 0x00000001
5656
#define HTTP_INITIALIZE_CONFIG 0x00000002
5757

58-
#if _WIN32_WINNT <= 0x0501
58+
#if _WIN32_WINNT <= 0x0501
5959
#define BUILD_IIS_FOR_XP 1
6060
#endif
6161

@@ -582,7 +582,7 @@ typedef enum _HTTP_LOGGING_ROLLOVER_TYPE
582582
// log file rollovers happen by GMT time.
583583
//
584584
// HTTP_LOGGING_FLAG_USE_UTF8_CONVERSION - When set the unicode fields
585-
// will be converted to UTF8 multibytes when writting to the log
585+
// will be converted to UTF8 multibytes when writing to the log
586586
// files. When this flag is not present, the local code page
587587
// conversion happens.
588588
//
@@ -1736,10 +1736,10 @@ typedef enum _HTTP_RESPONSE_INFO_TYPE
17361736
HttpResponseInfoTypeMultipleKnownHeaders,
17371737
HttpResponseInfoTypeAuthenticationProperty,
17381738
HttpResponseInfoTypeQoSProperty
1739-
1739+
17401740
#if _WIN32_WINNT >= _WIN32_WINNT_WIN7 || BUILD_IIS_FOR_XP
17411741
,HttpResponseInfoTypeChannelBind
1742-
#endif
1742+
#endif
17431743

17441744
} HTTP_RESPONSE_INFO_TYPE, PHTTP_RESPONSE_INFO_TYPE;
17451745

src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/IIS-Common/Include/percpu.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class PER_CPU
7979
);
8080

8181
//
82-
// Pointer to the begining of the inlined array.
82+
// Pointer to the beginning of the inlined array.
8383
//
8484
PVOID m_pVariables;
8585
SIZE_T m_Alignment;
@@ -101,7 +101,7 @@ PER_CPU<T>::Create(
101101
DWORD ObjectCacheLineSize = 0;
102102
DWORD NumberOfProcessors = 0;
103103
PER_CPU<T> * pInstance = NULL;
104-
104+
105105
hr = GetProcessorInformation(&CacheLineSize,
106106
&NumberOfProcessors);
107107
if (FAILED(hr))
@@ -140,7 +140,7 @@ PER_CPU<T>::Create(
140140
// The array start in the 2nd cache line.
141141
//
142142
pInstance->m_pVariables = reinterpret_cast<PBYTE>(pInstance) + CacheLineSize;
143-
143+
144144
//
145145
// Pass a disposer for disposing initialized items in case of failure.
146146
//

src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/IIS-Common/Include/treehash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ TREE_HASH_TABLE<_Record>::InsertRecord(
519519
)
520520
/*++
521521
This method inserts a node for this record and also empty nodes for paths
522-
in the heirarchy leading upto this path
522+
in the hierarchy leading upto this path
523523
524524
The insert is done under only a read-lock - this is possible by keeping
525525
the hashes in a bucket in increasing order and using interlocked operations

src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/IIS-Common/lib/stringa.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ Routine Description:
16371637
16381638
Return Value:
16391639
1640-
The index for the first character occurence in the string.
1640+
The index for the first character occurrence in the string.
16411641
16421642
-1 if not found.
16431643
@@ -1684,7 +1684,7 @@ Routine Description:
16841684
16851685
Return Value:
16861686
1687-
The index for the first character occurence in the string.
1687+
The index for the first character occurrence in the string.
16881688
16891689
-1 if not found.
16901690
@@ -1733,7 +1733,7 @@ Routine Description:
17331733
17341734
Return Value:
17351735
1736-
The index for the last character occurence in the string.
1736+
The index for the last character occurrence in the string.
17371737
17381738
-1 if not found.
17391739

src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/IIS-Common/lib/stringu.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ Routine Description:
10831083
10841084
Return Value:
10851085
1086-
The index for the first character occurence in the string.
1086+
The index for the first character occurrence in the string.
10871087
10881088
-1 if not found.
10891089
@@ -1130,7 +1130,7 @@ Routine Description:
11301130
11311131
Return Value:
11321132
1133-
The index for the first character occurence in the string.
1133+
The index for the first character occurrence in the string.
11341134
11351135
-1 if not found.
11361136
@@ -1179,7 +1179,7 @@ Routine Description:
11791179
11801180
Return Value:
11811181
1182-
The index for the last character occurence in the string.
1182+
The index for the last character occurrence in the string.
11831183
11841184
-1 if not found.
11851185

src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/iisca/lib/setup_log.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ enum SETUP_LOG_SEVERITY
2020
//consider using an IIS prefix for Msi* methods - they conflict with MSI apis
2121

2222
//
23-
// Initalize logging once at begining of CA
23+
// Initialize logging once at beginning of CA
2424
//
2525

2626
VOID
@@ -31,7 +31,7 @@ IISLogInitialize(
3131

3232
//
3333
// Close logging at end / exit of CA
34-
//
34+
//
3535

3636
VOID
3737
IISLogClose(
@@ -40,7 +40,7 @@ IISLogClose(
4040

4141
//
4242
// Writes a message to msi log file
43-
//
43+
//
4444
VOID
4545
IISLogWrite(
4646
IN SETUP_LOG_SEVERITY setupLogSeverity,

0 commit comments

Comments
 (0)