Fix typos in code comments

This commit is contained in:
GitHubPang 2021-09-14 07:52:08 +08:00 committed by Phil Scott
parent c3510f3036
commit d34012cad0
10 changed files with 11 additions and 11 deletions

View File

@ -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
*/

View File

@ -3,7 +3,7 @@ using System;
namespace Spectre.Console.Cli
{
/// <summary>
/// An base class attribute used for parameter validation.
/// A base class attribute used for parameter validation.
/// </summary>
/// <seealso cref="Attribute" />
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]

View File

@ -3,7 +3,7 @@ using System;
namespace Spectre.Console.Cli
{
/// <summary>
/// An base class attribute used for parameter completion.
/// A base class attribute used for parameter completion.
/// </summary>
/// <seealso cref="Attribute" />
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]

View File

@ -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

View File

@ -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)

View File

@ -5,7 +5,7 @@ namespace Spectre.Console.Rendering
{
/// <summary>
/// Represents something renderable that's reconstructed
/// when it's state change in any way.
/// when its state change in any way.
/// </summary>
public abstract class JustInTimeRenderable : Renderable
{

View File

@ -29,7 +29,7 @@ namespace Spectre.Console
public string? Link { get; }
/// <summary>
/// Gets an <see cref="Style"/> with the
/// Gets a <see cref="Style"/> with the
/// default colors and without text decoration.
/// </summary>
public static Style Plain { get; } = new Style();

View File

@ -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

View File

@ -19,7 +19,7 @@ namespace Spectre.Console
/// <summary>
/// Gets or sets the width of the column.
/// If <c>null</c>, the column will adapt to it's contents.
/// If <c>null</c>, the column will adapt to its contents.
/// </summary>
public int? Width
{

View File

@ -20,7 +20,7 @@ namespace Spectre.Console
/// <summary>
/// Gets or sets the width of the column.
/// If <c>null</c>, the column will adapt to it's contents.
/// If <c>null</c>, the column will adapt to its contents.
/// </summary>
public int? Width { get; set; }