From d34012cad044cc7395e3b6a7e08624d7ba583d0e Mon Sep 17 00:00:00 2001 From: GitHubPang <61439577+GitHubPang@users.noreply.github.com> Date: Tue, 14 Sep 2021 07:52:08 +0800 Subject: [PATCH] Fix typos in code comments --- examples/Cli/Logging/Program.cs | 2 +- .../Cli/Annotations/ParameterValidationAttribute.cs | 2 +- .../Cli/Annotations/ParameterValueProviderAttribute.cs | 2 +- src/Spectre.Console/Cli/Internal/CommandValidator.cs | 2 +- src/Spectre.Console/Prompts/MultiSelectionPrompt.cs | 4 ++-- src/Spectre.Console/Rendering/JustInTimeRenderable.cs | 2 +- src/Spectre.Console/Style.cs | 2 +- src/Spectre.Console/Widgets/Figlet/FigletText.cs | 2 +- src/Spectre.Console/Widgets/GridColumn.cs | 2 +- src/Spectre.Console/Widgets/Table/TableColumn.cs | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/Cli/Logging/Program.cs b/examples/Cli/Logging/Program.cs index 16f3517..cc05479 100644 --- a/examples/Cli/Logging/Program.cs +++ b/examples/Cli/Logging/Program.cs @@ -8,7 +8,7 @@ using Spectre.Console.Cli; * This works around the chicken and egg situation with configuring serilog via the command line. * The logger needs to be configured prior to executing the parser, but the logger needs the parsed values * to be configured. By using serilog.sinks.map we can defer configuration. We use a LogLevelSwitch to control the - * logging levels dynamically, and then we use a serilog enricher that has it's state populated via a + * logging levels dynamically, and then we use a serilog enricher that has its state populated via a * Spectre.Console CommandInterceptor */ diff --git a/src/Spectre.Console/Cli/Annotations/ParameterValidationAttribute.cs b/src/Spectre.Console/Cli/Annotations/ParameterValidationAttribute.cs index b297733..381e7f1 100644 --- a/src/Spectre.Console/Cli/Annotations/ParameterValidationAttribute.cs +++ b/src/Spectre.Console/Cli/Annotations/ParameterValidationAttribute.cs @@ -3,7 +3,7 @@ using System; namespace Spectre.Console.Cli { /// - /// An base class attribute used for parameter validation. + /// A base class attribute used for parameter validation. /// /// [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)] diff --git a/src/Spectre.Console/Cli/Annotations/ParameterValueProviderAttribute.cs b/src/Spectre.Console/Cli/Annotations/ParameterValueProviderAttribute.cs index 8cf509e..5dbf410 100644 --- a/src/Spectre.Console/Cli/Annotations/ParameterValueProviderAttribute.cs +++ b/src/Spectre.Console/Cli/Annotations/ParameterValueProviderAttribute.cs @@ -3,7 +3,7 @@ using System; namespace Spectre.Console.Cli { /// - /// An base class attribute used for parameter completion. + /// A base class attribute used for parameter completion. /// /// [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] diff --git a/src/Spectre.Console/Cli/Internal/CommandValidator.cs b/src/Spectre.Console/Cli/Internal/CommandValidator.cs index 6fabd31..39816de 100644 --- a/src/Spectre.Console/Cli/Internal/CommandValidator.cs +++ b/src/Spectre.Console/Cli/Internal/CommandValidator.cs @@ -32,7 +32,7 @@ namespace Spectre.Console.Cli var validationResult = validator.Validate(context); if (!validationResult.Successful) { - // If there is a error message specified in the parameter validator attribute, + // If there is an error message specified in the parameter validator attribute, // then use that one, otherwise use the validation result. var result = string.IsNullOrWhiteSpace(validator.ErrorMessage) ? validationResult diff --git a/src/Spectre.Console/Prompts/MultiSelectionPrompt.cs b/src/Spectre.Console/Prompts/MultiSelectionPrompt.cs index 273b1d3..69a504e 100644 --- a/src/Spectre.Console/Prompts/MultiSelectionPrompt.cs +++ b/src/Spectre.Console/Prompts/MultiSelectionPrompt.cs @@ -134,13 +134,13 @@ namespace Spectre.Console if (Mode == SelectionMode.Leaf) { - // Select the node and all it's children + // Select the node and all its children foreach (var item in current.Traverse(includeSelf: true)) { item.IsSelected = select; } - // Visit every parent and evaluate if it's selection + // Visit every parent and evaluate if its selection // status need to be updated var parent = current.Parent; while (parent != null) diff --git a/src/Spectre.Console/Rendering/JustInTimeRenderable.cs b/src/Spectre.Console/Rendering/JustInTimeRenderable.cs index 5d223b6..a70f71f 100644 --- a/src/Spectre.Console/Rendering/JustInTimeRenderable.cs +++ b/src/Spectre.Console/Rendering/JustInTimeRenderable.cs @@ -5,7 +5,7 @@ namespace Spectre.Console.Rendering { /// /// Represents something renderable that's reconstructed - /// when it's state change in any way. + /// when its state change in any way. /// public abstract class JustInTimeRenderable : Renderable { diff --git a/src/Spectre.Console/Style.cs b/src/Spectre.Console/Style.cs index 018e899..22598e1 100644 --- a/src/Spectre.Console/Style.cs +++ b/src/Spectre.Console/Style.cs @@ -29,7 +29,7 @@ namespace Spectre.Console public string? Link { get; } /// - /// Gets an with the + /// Gets a with the /// default colors and without text decoration. /// public static Style Plain { get; } = new Style(); diff --git a/src/Spectre.Console/Widgets/Figlet/FigletText.cs b/src/Spectre.Console/Widgets/Figlet/FigletText.cs index a72c3b0..0685f61 100644 --- a/src/Spectre.Console/Widgets/Figlet/FigletText.cs +++ b/src/Spectre.Console/Widgets/Figlet/FigletText.cs @@ -107,7 +107,7 @@ namespace Spectre.Console } else { - // Does it fit on it's own line? + // Does it fit on its own line? if (width < maxWidth) { // Flush the line diff --git a/src/Spectre.Console/Widgets/GridColumn.cs b/src/Spectre.Console/Widgets/GridColumn.cs index 5418832..d6e36f1 100644 --- a/src/Spectre.Console/Widgets/GridColumn.cs +++ b/src/Spectre.Console/Widgets/GridColumn.cs @@ -19,7 +19,7 @@ namespace Spectre.Console /// /// Gets or sets the width of the column. - /// If null, the column will adapt to it's contents. + /// If null, the column will adapt to its contents. /// public int? Width { diff --git a/src/Spectre.Console/Widgets/Table/TableColumn.cs b/src/Spectre.Console/Widgets/Table/TableColumn.cs index beabf40..2efae20 100644 --- a/src/Spectre.Console/Widgets/Table/TableColumn.cs +++ b/src/Spectre.Console/Widgets/Table/TableColumn.cs @@ -20,7 +20,7 @@ namespace Spectre.Console /// /// Gets or sets the width of the column. - /// If null, the column will adapt to it's contents. + /// If null, the column will adapt to its contents. /// public int? Width { get; set; }