Skip to content

Commit 019ab77

Browse files
authored
Fixing minor typos (#86)
This addresses several typos that were seen in the XML comments.
1 parent 4eeadad commit 019ab77

File tree

18 files changed

+23
-23
lines changed

18 files changed

+23
-23
lines changed

src/CommunityToolkit.Datasync.Client/Paging/Page.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class Page<TEntity>
2222
public long? Count { get; set; }
2323

2424
/// <summary>
25-
/// The Uri to the nexty page in the result set.
25+
/// The Uri to the next page in the result set.
2626
/// </summary>
2727
public string? NextLink { get; set; }
2828
}

src/CommunityToolkit.Datasync.Client/Query/DatasyncPullQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CommunityToolkit.Datasync.Client.Offline;
1010
/// Represents a query that can be evaluated against an OData table.
1111
/// </summary>
1212
/// <remarks>
13-
/// Rather than implenting <see cref="IQueryable{T}"/> directly, we've implemented the portion of the LINQ query
13+
/// Rather than implementing <see cref="IQueryable{T}"/> directly, we've implemented the portion of the LINQ query
1414
/// pattern we support on a datasync service. You can use the <see cref="IDatasyncQueryable{TEntity}"/> instance
1515
/// to build up a query using normal LINQ patterns.
1616
/// </remarks>

src/CommunityToolkit.Datasync.Client/Query/DatasyncQueryable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace CommunityToolkit.Datasync.Client.Query;
1212
/// Represents a query that can be evaluated against an OData table.
1313
/// </summary>
1414
/// <remarks>
15-
/// Rather than implenting <see cref="IQueryable{T}"/> directly, we've implemented the portion of the LINQ query
15+
/// Rather than implementing <see cref="IQueryable{T}"/> directly, we've implemented the portion of the LINQ query
1616
/// pattern we support on a datasync service. You can use the <see cref="IDatasyncQueryable{TEntity}"/> instance
1717
/// to build up a query using normal LINQ patterns.
1818
/// </remarks>
@@ -76,7 +76,7 @@ public IDatasyncQueryable<TEntity> IncludeDeletedItems(bool enabled = true)
7676
/// Ensure the query will get the total count for all the records that would have been returned
7777
/// ignoring any take paging/limit clause specified by client or server.
7878
/// </summary>
79-
/// <param name="enabled">If <c>true</c>, enables this requst.</param>
79+
/// <param name="enabled">If <c>true</c>, enables this request.</param>
8080
/// <returns>The composed query object.</returns>
8181
public IDatasyncQueryable<TEntity> IncludeTotalCount(bool enabled = true)
8282
{

src/CommunityToolkit.Datasync.Client/Query/IDatasyncPullQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CommunityToolkit.Datasync.Client.Offline;
1010
/// Represents a query that can be evaluated against an OData table for pull operations.
1111
/// </summary>
1212
/// <remarks>
13-
/// Rather than implenting <see cref="IQueryable{T}"/> directly, we've implemented the portion of the LINQ query
13+
/// Rather than implementing <see cref="IQueryable{T}"/> directly, we've implemented the portion of the LINQ query
1414
/// pattern we support on a datasync service. You can use the <see cref="IDatasyncQueryable{TEntity}"/>
1515
/// instance to build up a query using normal LINQ patterns.
1616
/// </remarks>

src/CommunityToolkit.Datasync.Client/Query/IDatasyncQueryMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public interface IDatasyncQueryMethods<TEntity> where TEntity : class
2424
/// Ensure the query will get the total count for all the records that would have been returned
2525
/// ignoring any take paging/limit clause specified by client or server.
2626
/// </summary>
27-
/// <param name="enabled">If <c>true</c>, enables this requst.</param>
27+
/// <param name="enabled">If <c>true</c>, enables this request.</param>
2828
/// <returns>The composed query object.</returns>
2929
IDatasyncQueryable<TEntity> IncludeTotalCount(bool enabled = true);
3030

src/CommunityToolkit.Datasync.Client/Query/IDatasyncQueryable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CommunityToolkit.Datasync.Client;
1010
/// Represents a query that can be evaluated against an OData table.
1111
/// </summary>
1212
/// <remarks>
13-
/// Rather than implenting <see cref="IQueryable{T}"/> directly, we've implemented the portion of the LINQ query
13+
/// Rather than implementing <see cref="IQueryable{T}"/> directly, we've implemented the portion of the LINQ query
1414
/// pattern we support on a datasync service. You can use the <see cref="IDatasyncQueryable{TEntity}"/>
1515
/// instance to build up a query using normal LINQ patterns.
1616
/// </remarks>

src/CommunityToolkit.Datasync.Client/Query/Linq/ExpressionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ internal static List<Expression> FindIndependentSubtrees(this Expression express
2727
{
2828
List<Expression> subtrees = [];
2929

30-
// The dependenty and isMemberInit flags are used to communicate between different layers
30+
// The dependent and isMemberInit flags are used to communicate between different layers
3131
// of the recursive visitor.
3232
bool dependent = false;
3333
bool isMemberInit = false;
@@ -50,7 +50,7 @@ internal static List<Expression> FindIndependentSubtrees(this Expression express
5050
// If nothing in my subtree is dependent
5151
if (!dependent)
5252
{
53-
// A NewExpression itself will appear to be indepentt, but if the parent is a MemberInitExpression,
53+
// A NewExpression itself will appear to be independent, but if the parent is a MemberInitExpression,
5454
// then the NewExpression can't be evaluated by itself. The MemberInitExpression will determine
5555
// if the full expression is dependent or not, so don't check it here.
5656
if (expr is NewExpression newExpression && parentIsMemberInit)

src/CommunityToolkit.Datasync.Client/Query/Linq/QueryNodes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ internal sealed class MemberAccessNode(QueryNode instance, string memberName) :
183183
public override QueryNodeKind Kind => QueryNodeKind.MemberAccess;
184184

185185
/// <summary>
186-
/// The name of the member (property, field, etc.) we are acccessing
186+
/// The name of the member (property, field, etc.) we are accessing
187187
/// </summary>
188188
public string MemberName { get; set; } = memberName;
189189
}

src/CommunityToolkit.Datasync.Client/Query/Linq/QueryTranslator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ internal QueryTranslator(IDatasyncPullQuery<T> query)
6363
internal JsonNamingPolicy NamingPolicy { get; }
6464

6565
/// <summary>
66-
/// Replacable function for GetTableMemberName.
66+
/// Replaceable function for GetTableMemberName.
6767
/// </summary>
6868
internal Func<MemberExpression, JsonNamingPolicy, string> GetTableMemberName { get; set; } = DefaultGetTableMemberName;
6969

@@ -146,7 +146,7 @@ internal void AddByMethodName(MethodCallExpression expression, string methodName
146146
break;
147147

148148
default:
149-
throw new NotSupportedException($"'{methodName}' caluse in query expression is not supported.");
149+
throw new NotSupportedException($"'{methodName}' clause in query expression is not supported.");
150150
}
151151
}
152152

src/CommunityToolkit.Datasync.Client/Query/Linq/VisitorHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ internal sealed class VisitorHelper : ExpressionVisitor
3131
/// <summary>
3232
/// A visitor callback for the VisitMember method that takes the
3333
/// MemberExpression along with a function that will recurse and
34-
/// returns the visisted expression or a modified value.
34+
/// returns the visited expression or a modified value.
3535
/// </summary>
3636
private Func<MemberExpression, Func<MemberExpression, Expression>, Expression> memberVisitor;
3737

@@ -82,7 +82,7 @@ public static Expression VisitMembers(Expression expression, Func<MemberExpressi
8282
/// Visit every node.
8383
/// </summary>
8484
/// <param name="expression">The expression to visit.</param>
85-
/// <returns>The visisted expression.</returns>
85+
/// <returns>The visited expression.</returns>
8686
[ExcludeFromCodeCoverage]
8787
public override Expression Visit(Expression expression)
8888
=> this.visitor != null ? this.visitor(expression, e => base.Visit(e)) : base.Visit(expression);

0 commit comments

Comments
 (0)