mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
Fix typos in code comments
This commit is contained in:
@ -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)]
|
||||
|
@ -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)]
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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; }
|
||||
|
||||
|
Reference in New Issue
Block a user