From 39053a5e221ce27412694f18d8dc64a7495c7226 Mon Sep 17 00:00:00 2001 From: flash2048 Date: Sun, 8 Apr 2018 09:08:30 +0300 Subject: [PATCH] Corrects spelling of some comments --- .../Filters/FilterContext.cs | 4 ++-- .../ModelBinding/BindingInfo.cs | 2 +- .../Infrastructure/OutputFormatterSelector.cs | 2 +- src/Microsoft.AspNetCore.Mvc.Core/Internal/ViewEnginePath.cs | 2 +- .../ModelBinding/Binders/EnumTypeModelBinder.cs | 4 ++-- .../MvcJsonOptions.cs | 2 +- .../Internal/DefaultPageHandlerMethodSelector.cs | 2 +- .../Internal/PageActionInvoker.cs | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Microsoft.AspNetCore.Mvc.Abstractions/Filters/FilterContext.cs b/src/Microsoft.AspNetCore.Mvc.Abstractions/Filters/FilterContext.cs index 1a88cb721e..961e283399 100644 --- a/src/Microsoft.AspNetCore.Mvc.Abstractions/Filters/FilterContext.cs +++ b/src/Microsoft.AspNetCore.Mvc.Abstractions/Filters/FilterContext.cs @@ -75,10 +75,10 @@ namespace Microsoft.AspNetCore.Mvc.Filters /// /// Returns the most effective (most specific) policy of type applied to - /// the action assocatied with the . + /// the action associated with the . /// /// The type of the filter policy. - /// The implementation of applied to the action assocatied with + /// The implementation of applied to the action associated with /// the /// public TMetadata FindEffectivePolicy() where TMetadata : IFilterMetadata diff --git a/src/Microsoft.AspNetCore.Mvc.Abstractions/ModelBinding/BindingInfo.cs b/src/Microsoft.AspNetCore.Mvc.Abstractions/ModelBinding/BindingInfo.cs index 8ebd959b56..baef377507 100644 --- a/src/Microsoft.AspNetCore.Mvc.Abstractions/ModelBinding/BindingInfo.cs +++ b/src/Microsoft.AspNetCore.Mvc.Abstractions/ModelBinding/BindingInfo.cs @@ -68,7 +68,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding /// /// This overload does not account for specified via . Consider using /// overload, or - /// on the result of this method to to get a more accurate instance. + /// on the result of this method to get a more accurate instance. /// /// /// A collection of attributes which are used to construct diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Infrastructure/OutputFormatterSelector.cs b/src/Microsoft.AspNetCore.Mvc.Core/Infrastructure/OutputFormatterSelector.cs index 480775076d..fd721d3451 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Infrastructure/OutputFormatterSelector.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/Infrastructure/OutputFormatterSelector.cs @@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Mvc.Infrastructure /// /// The default implementation of provided by ASP.NET Core MVC /// is . The implements - /// MVC's default content negotiation algorthm. This API is designed in a way that can satisfy the contract + /// MVC's default content negotiation algorithm. This API is designed in a way that can satisfy the contract /// of . /// /// diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Internal/ViewEnginePath.cs b/src/Microsoft.AspNetCore.Mvc.Core/Internal/ViewEnginePath.cs index 056a49d4eb..29d4f85597 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Internal/ViewEnginePath.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/Internal/ViewEnginePath.cs @@ -61,7 +61,7 @@ namespace Microsoft.AspNetCore.Mvc.Internal foreach (var segment in tokenizer) { // Determine if we need to do any path resolution. - // We need to resovle paths with multiple path separators (e.g "//" or "\\") or, directory traversals e.g. ("../" or "./"). + // We need to resolve paths with multiple path separators (e.g "//" or "\\") or, directory traversals e.g. ("../" or "./"). if (segment.Length == 0 || segment.Equals(ParentDirectoryToken, StringComparison.Ordinal) || segment.Equals(CurrentDirectoryToken, StringComparison.Ordinal)) diff --git a/src/Microsoft.AspNetCore.Mvc.Core/ModelBinding/Binders/EnumTypeModelBinder.cs b/src/Microsoft.AspNetCore.Mvc.Core/ModelBinding/Binders/EnumTypeModelBinder.cs index 8489bc5ed0..601d02ba44 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/ModelBinding/Binders/EnumTypeModelBinder.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/ModelBinding/Binders/EnumTypeModelBinder.cs @@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders /// /// Flag to determine if binding to undefined should be suppressed or not. /// - /// The mdoel type. + /// The model type. /// The , public EnumTypeModelBinder( bool suppressBindingUndefinedValueToEnumType, @@ -76,7 +76,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders { // Enum.IsDefined does not work with combined flag enum values. // From EnumDataTypeAttribute.cs in CoreFX. - // Exmaples: + // Examples: // // [Flags] // enum FlagsEnum { Value1 = 1, Value2 = 2, Value4 = 4 } diff --git a/src/Microsoft.AspNetCore.Mvc.Formatters.Json/MvcJsonOptions.cs b/src/Microsoft.AspNetCore.Mvc.Formatters.Json/MvcJsonOptions.cs index 7174d273ea..f27cf0b00c 100644 --- a/src/Microsoft.AspNetCore.Mvc.Formatters.Json/MvcJsonOptions.cs +++ b/src/Microsoft.AspNetCore.Mvc.Formatters.Json/MvcJsonOptions.cs @@ -39,7 +39,7 @@ namespace Microsoft.AspNetCore.Mvc /// /// /// Error messages in the are often communicated to clients, either in HTML - /// or using . In effect, this setting controls whether clients can recieve + /// or using . In effect, this setting controls whether clients can receive /// detailed error messages about submitted JSON data. /// /// diff --git a/src/Microsoft.AspNetCore.Mvc.RazorPages/Internal/DefaultPageHandlerMethodSelector.cs b/src/Microsoft.AspNetCore.Mvc.RazorPages/Internal/DefaultPageHandlerMethodSelector.cs index e5d53f6203..2369705ed7 100644 --- a/src/Microsoft.AspNetCore.Mvc.RazorPages/Internal/DefaultPageHandlerMethodSelector.cs +++ b/src/Microsoft.AspNetCore.Mvc.RazorPages/Internal/DefaultPageHandlerMethodSelector.cs @@ -133,7 +133,7 @@ namespace Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure } } - // Step 2: remove candiates with non-matching handlers. + // Step 2: remove candidates with non-matching handlers. for (var i = candidates.Count - 1; i >= 0; i--) { var handler = candidates[i]; diff --git a/src/Microsoft.AspNetCore.Mvc.RazorPages/Internal/PageActionInvoker.cs b/src/Microsoft.AspNetCore.Mvc.RazorPages/Internal/PageActionInvoker.cs index de4536d275..b0a429213d 100644 --- a/src/Microsoft.AspNetCore.Mvc.RazorPages/Internal/PageActionInvoker.cs +++ b/src/Microsoft.AspNetCore.Mvc.RazorPages/Internal/PageActionInvoker.cs @@ -166,7 +166,7 @@ namespace Microsoft.AspNetCore.Mvc.RazorPages.Internal } // We do two separate cache lookups, once for the binder and once for the executor. - // Reduding it to a single lookup requires a lot of code change with little value. + // Reducing it to a single lookup requires a lot of code change with little value. PageHandlerBinderDelegate handlerBinder = null; for (var i = 0; i < _actionDescriptor.HandlerMethods.Count; i++) {