Skip to content

Commit

Permalink
Fix a few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Dec 20, 2021
1 parent 10186c5 commit 888ec93
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
26 changes: 13 additions & 13 deletions Microsoft.Toolkit.Uwp.UI/Extensions/DependencyObjectExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static class DependencyObjectExtensions
/// </summary>
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
/// <returns>The descendant that was found, or <see langword="null"/>.</returns>
public static T? FindDescendant<T>(this DependencyObject element, Func<T, bool> predicate)
where T : notnull, DependencyObject
Expand All @@ -123,7 +123,7 @@ public static class DependencyObjectExtensions
/// </summary>
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
/// <param name="searchType">The search type to use to explore the visual tree.</param>
/// <returns>The descendant that was found, or <see langword="null"/>.</returns>
public static T? FindDescendant<T>(this DependencyObject element, Func<T, bool> predicate, SearchType searchType)
Expand All @@ -141,7 +141,7 @@ public static class DependencyObjectExtensions
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
/// <returns>The descendant that was found, or <see langword="null"/>.</returns>
public static T? FindDescendant<T, TState>(this DependencyObject element, TState state, Func<T, TState, bool> predicate)
where T : notnull, DependencyObject
Expand All @@ -158,7 +158,7 @@ public static class DependencyObjectExtensions
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
/// <param name="searchType">The search type to use to explore the visual tree.</param>
/// <returns>The descendant that was found, or <see langword="null"/>.</returns>
public static T? FindDescendant<T, TState>(this DependencyObject element, TState state, Func<T, TState, bool> predicate, SearchType searchType)
Expand Down Expand Up @@ -374,7 +374,7 @@ public static class DependencyObjectExtensions
/// </summary>
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
/// <returns>The descendant (or self) that was found, or <see langword="null"/>.</returns>
public static T? FindDescendantOrSelf<T>(this DependencyObject element, Func<T, bool> predicate)
where T : notnull, DependencyObject
Expand All @@ -392,7 +392,7 @@ public static class DependencyObjectExtensions
/// </summary>
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
/// <param name="searchType">The search type to use to explore the visual tree.</param>
/// <returns>The descendant (or self) that was found, or <see langword="null"/>.</returns>
public static T? FindDescendantOrSelf<T>(this DependencyObject element, Func<T, bool> predicate, SearchType searchType)
Expand All @@ -413,7 +413,7 @@ public static class DependencyObjectExtensions
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
/// <returns>The descendant (or self) that was found, or <see langword="null"/>.</returns>
public static T? FindDescendantOrSelf<T, TState>(this DependencyObject element, TState state, Func<T, TState, bool> predicate)
where T : notnull, DependencyObject
Expand All @@ -433,7 +433,7 @@ public static class DependencyObjectExtensions
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
/// <param name="searchType">The search type to use to explore the visual tree.</param>
/// <returns>The descendant (or self) that was found, or <see langword="null"/>.</returns>
public static T? FindDescendantOrSelf<T, TState>(this DependencyObject element, TState state, Func<T, TState, bool> predicate, SearchType searchType)
Expand Down Expand Up @@ -727,7 +727,7 @@ static IEnumerable<DependencyObject> ThrowArgumentOutOfRangeExceptionForInvalidS
/// </summary>
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <param name="element">The starting element.</param>
/// <param name="predicate">The predicatee to use to match the ascendant nodes.</param>
/// <param name="predicate">The predicate to use to match the ascendant nodes.</param>
/// <returns>The ascendant that was found, or <see langword="null"/>.</returns>
public static T? FindAscendant<T>(this DependencyObject element, Func<T, bool> predicate)
where T : notnull, DependencyObject
Expand All @@ -744,7 +744,7 @@ static IEnumerable<DependencyObject> ThrowArgumentOutOfRangeExceptionForInvalidS
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
/// <param name="element">The starting element.</param>
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
/// <param name="predicate">The predicatee to use to match the ascendant nodes.</param>
/// <param name="predicate">The predicate to use to match the ascendant nodes.</param>
/// <returns>The ascendant that was found, or <see langword="null"/>.</returns>
public static T? FindAscendant<T, TState>(this DependencyObject element, TState state, Func<T, TState, bool> predicate)
where T : notnull, DependencyObject
Expand All @@ -760,7 +760,7 @@ static IEnumerable<DependencyObject> ThrowArgumentOutOfRangeExceptionForInvalidS
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <typeparam name="TPredicate">The type of predicate in use.</typeparam>
/// <param name="element">The starting element.</param>
/// <param name="predicate">The predicatee to use to match the ascendant nodes.</param>
/// <param name="predicate">The predicate to use to match the ascendant nodes.</param>
/// <returns>The ascendant that was found, or <see langword="null"/>.</returns>
private static T? FindAscendant<T, TPredicate>(this DependencyObject element, ref TPredicate predicate)
where T : notnull, DependencyObject
Expand Down Expand Up @@ -839,7 +839,7 @@ static IEnumerable<DependencyObject> ThrowArgumentOutOfRangeExceptionForInvalidS
/// </summary>
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <param name="element">The starting element.</param>
/// <param name="predicate">The predicatee to use to match the ascendant nodes.</param>
/// <param name="predicate">The predicate to use to match the ascendant nodes.</param>
/// <returns>The ascendant (or self) that was found, or <see langword="null"/>.</returns>
public static T? FindAscendantOrSelf<T>(this DependencyObject element, Func<T, bool> predicate)
where T : notnull, DependencyObject
Expand All @@ -859,7 +859,7 @@ static IEnumerable<DependencyObject> ThrowArgumentOutOfRangeExceptionForInvalidS
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
/// <param name="element">The starting element.</param>
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
/// <param name="predicate">The predicatee to use to match the ascendant nodes.</param>
/// <param name="predicate">The predicate to use to match the ascendant nodes.</param>
/// <returns>The ascendant (or self) that was found, or <see langword="null"/>.</returns>
public static T? FindAscendantOrSelf<T, TState>(this DependencyObject element, TState state, Func<T, TState, bool> predicate)
where T : notnull, DependencyObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static partial class FrameworkElementExtensions
/// </summary>
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="predicate">The predicatee to use to match the child nodes.</param>
/// <param name="predicate">The predicate to use to match the child nodes.</param>
/// <returns>The child that was found, or <see langword="null"/>.</returns>
public static T? FindChild<T>(this FrameworkElement element, Func<T, bool> predicate)
where T : notnull, FrameworkElement
Expand All @@ -80,7 +80,7 @@ public static partial class FrameworkElementExtensions
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
/// <param name="predicate">The predicatee to use to match the child nodes.</param>
/// <param name="predicate">The predicate to use to match the child nodes.</param>
/// <returns>The child that was found, or <see langword="null"/>.</returns>
public static T? FindChild<T, TState>(this FrameworkElement element, TState state, Func<T, TState, bool> predicate)
where T : notnull, FrameworkElement
Expand All @@ -96,7 +96,7 @@ public static partial class FrameworkElementExtensions
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <typeparam name="TPredicate">The type of predicate in use.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="predicate">The predicatee to use to match the child nodes.</param>
/// <param name="predicate">The predicate to use to match the child nodes.</param>
/// <returns>The child that was found, or <see langword="null"/>.</returns>
private static T? FindChild<T, TPredicate>(this FrameworkElement element, ref TPredicate predicate)
where T : notnull, FrameworkElement
Expand Down Expand Up @@ -296,7 +296,7 @@ public static partial class FrameworkElementExtensions
/// </summary>
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="predicate">The predicatee to use to match the child nodes.</param>
/// <param name="predicate">The predicate to use to match the child nodes.</param>
/// <returns>The child (or self) that was found, or <see langword="null"/>.</returns>
public static T? FindChildOrSelf<T>(this FrameworkElement element, Func<T, bool> predicate)
where T : notnull, FrameworkElement
Expand All @@ -316,7 +316,7 @@ public static partial class FrameworkElementExtensions
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
/// <param name="element">The root element.</param>
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
/// <param name="predicate">The predicatee to use to match the child nodes.</param>
/// <param name="predicate">The predicate to use to match the child nodes.</param>
/// <returns>The child (or self) that was found, or <see langword="null"/>.</returns>
public static T? FindChildOrSelf<T, TState>(this FrameworkElement element, TState state, Func<T, TState, bool> predicate)
where T : notnull, FrameworkElement
Expand Down Expand Up @@ -490,7 +490,7 @@ public static IEnumerable<FrameworkElement> FindChildren(this FrameworkElement e
/// </summary>
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <param name="element">The starting element.</param>
/// <param name="predicate">The predicatee to use to match the parent nodes.</param>
/// <param name="predicate">The predicate to use to match the parent nodes.</param>
/// <returns>The parent that was found, or <see langword="null"/>.</returns>
public static T? FindParent<T>(this FrameworkElement element, Func<T, bool> predicate)
where T : notnull, FrameworkElement
Expand All @@ -507,7 +507,7 @@ public static IEnumerable<FrameworkElement> FindChildren(this FrameworkElement e
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
/// <param name="element">The starting element.</param>
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
/// <param name="predicate">The predicatee to use to match the parent nodes.</param>
/// <param name="predicate">The predicate to use to match the parent nodes.</param>
/// <returns>The parent that was found, or <see langword="null"/>.</returns>
public static T? FindParent<T, TState>(this FrameworkElement element, TState state, Func<T, TState, bool> predicate)
where T : notnull, FrameworkElement
Expand All @@ -523,7 +523,7 @@ public static IEnumerable<FrameworkElement> FindChildren(this FrameworkElement e
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <typeparam name="TPredicate">The type of predicate in use.</typeparam>
/// <param name="element">The starting element.</param>
/// <param name="predicate">The predicatee to use to match the parent nodes.</param>
/// <param name="predicate">The predicate to use to match the parent nodes.</param>
/// <returns>The parent that was found, or <see langword="null"/>.</returns>
private static T? FindParent<T, TPredicate>(this FrameworkElement element, ref TPredicate predicate)
where T : notnull, FrameworkElement
Expand Down Expand Up @@ -600,7 +600,7 @@ public static IEnumerable<FrameworkElement> FindChildren(this FrameworkElement e
/// </summary>
/// <typeparam name="T">The type of elements to match.</typeparam>
/// <param name="element">The starting element.</param>
/// <param name="predicate">The predicatee to use to match the parent nodes.</param>
/// <param name="predicate">The predicate to use to match the parent nodes.</param>
/// <returns>The parent (or self) that was found, or <see langword="null"/>.</returns>
public static T? FindParentOrSelf<T>(this FrameworkElement element, Func<T, bool> predicate)
where T : notnull, FrameworkElement
Expand All @@ -620,7 +620,7 @@ public static IEnumerable<FrameworkElement> FindChildren(this FrameworkElement e
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
/// <param name="element">The starting element.</param>
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
/// <param name="predicate">The predicatee to use to match the parent nodes.</param>
/// <param name="predicate">The predicate to use to match the parent nodes.</param>
/// <returns>The parent (or self) that was found, or <see langword="null"/>.</returns>
public static T? FindParentOrSelf<T, TState>(this FrameworkElement element, TState state, Func<T, TState, bool> predicate)
where T : notnull, FrameworkElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ namespace Microsoft.Toolkit.Uwp.UI.Predicates
private readonly TState state;

/// <summary>
/// The predicatee to use to match items.
/// The predicate to use to match items.
/// </summary>
private readonly Func<T, TState, bool> predicate;

/// <summary>
/// Initializes a new instance of the <see cref="PredicateByFunc{T, TState}"/> struct.
/// </summary>
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
/// <param name="predicate">The predicatee to use to match items.</param>
/// <param name="predicate">The predicate to use to match items.</param>
public PredicateByFunc(TState state, Func<T, TState, bool> predicate)
{
this.state = state;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ namespace Microsoft.Toolkit.Uwp.UI.Predicates
where T : class
{
/// <summary>
/// The predicatee to use to match items.
/// The predicate to use to match items.
/// </summary>
private readonly Func<T, bool> predicate;

/// <summary>
/// Initializes a new instance of the <see cref="PredicateByFunc{T}"/> struct.
/// </summary>
/// <param name="predicate">The predicatee to use to match items.</param>
/// <param name="predicate">The predicate to use to match items.</param>
public PredicateByFunc(Func<T, bool> predicate)
{
this.predicate = predicate;
Expand Down

0 comments on commit 888ec93

Please sign in to comment.