Skip to content

Commit

Permalink
chore: remove repetitive words
Browse files Browse the repository at this point in the history
Signed-off-by: crazeteam <lilujing@outlook.com>
  • Loading branch information
crazeteam committed Mar 25, 2024
1 parent e3e42b2 commit 26a5d95
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Avalonia.Base/Threading/DispatcherOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public bool Abort()
/// </summary>
/// <returns>
/// The status of the operation. To obtain the return value
/// of the invoked delegate, use the the Result property.
/// of the invoked delegate, use the Result property.
/// </returns>
public void Wait() => Wait(TimeSpan.FromMilliseconds(-1));

Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls.DataGrid/DataGridColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ public virtual IBinding ClipboardContentBinding
}

/// <summary>
/// Gets the value of a cell according to the the specified binding.
/// Gets the value of a cell according to the specified binding.
/// </summary>
/// <param name="item">The item associated with a cell.</param>
/// <param name="binding">The binding to get the value of.</param>
Expand Down
4 changes: 2 additions & 2 deletions src/Avalonia.Controls.DataGrid/IndexToValueTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ public bool ContainsAll(int startIndex, int endIndex)
}

/// <summary>
/// Returns true if the given index is contained in the table with the the given value
/// Returns true if the given index is contained in the table with the given value
/// </summary>
/// <param name="index">index to search for</param>
/// <param name="value">value expected</param>
/// <returns>true if the given index is contained in the table with the the given value</returns>
/// <returns>true if the given index is contained in the table with the given value</returns>
public bool ContainsIndexAndValue(int index, T value)
{
int lowerRangeIndex = this.FindRangeIndex(index);
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls/Automation/Peers/AutomationPeer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public abstract class AutomationPeer
public event EventHandler<AutomationPropertyChangedEventArgs>? PropertyChanged;

/// <summary>
/// Raises an event to notify the automation client the the children of the peer have changed.
/// Raises an event to notify the automation client the children of the peer have changed.
/// </summary>
protected void RaiseChildrenChangedEvent() => ChildrenChanged?.Invoke(this, EventArgs.Empty);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ internal void KeyDown(IMenuItem? item, KeyEventArgs e)
}
else if (item?.Parent?.MoveSelection(direction.Value, true) == true)
{
// If the the parent is an IMenu which successfully moved its selection,
// If the parent is an IMenu which successfully moved its selection,
// and the current menu is open then close the current menu and open the
// new menu.
if (item.IsSubMenuOpen &&
Expand Down
4 changes: 2 additions & 2 deletions src/Avalonia.Controls/Primitives/Popup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public PlacementMode Placement
}

/// <summary>
/// Gets or sets the the anchor rectangle within the parent that the popup will be placed
/// Gets or sets the anchor rectangle within the parent that the popup will be placed
/// relative to when <see cref="Placement"/> is <see cref="PlacementMode.AnchorAndGravity"/>.
/// </summary>
/// <remarks>
Expand Down Expand Up @@ -289,7 +289,7 @@ public Control? PlacementTarget
/// through to the parent window.
/// </summary>
/// <remarks>
/// When <see cref="IsLightDismissEnabled"/> is set to true, clicks outside the the popup
/// When <see cref="IsLightDismissEnabled"/> is set to true, clicks outside the popup
/// cause the popup to close. When <see cref="OverlayDismissEventPassThrough"/> is set to
/// false, these clicks will be handled by the popup and not be registered by the parent
/// window. When set to true, the events will be passed through to the parent window.
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls/VirtualizingPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private set
/// item is realized; otherwise, null.
/// </returns>
/// <remarks>
/// Note for implementors: if the item at the the specified index is an ItemIsOwnContainer
/// Note for implementors: if the item at the specified index is an ItemIsOwnContainer
/// item that has previously been realized, then the item should be returned even if it
/// currently falls outside the realized viewport.
/// </remarks>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public IXamlAstNode Transform(AstTransformationContext context, IXamlAstNode nod
return node;

if (pn.Values.Count != 1)
throw new XamlSelectorsTransformException("Selector property should should have exactly one value",
throw new XamlSelectorsTransformException("Selector property should have exactly one value",
node);

if (pn.Values[0] is XamlIlSelectorNode)
Expand Down
2 changes: 1 addition & 1 deletion src/Markup/Avalonia.Markup/Data/RelativeSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public enum TreeType
}

/// <summary>
/// Describes the the location of a binding source, relative to the binding target.
/// Describes the location of a binding source, relative to the binding target.
/// </summary>
public class RelativeSource
{
Expand Down

0 comments on commit 26a5d95

Please sign in to comment.