Skip to content

Commit 09be61e

Browse files
committed
chore: fix typos in code comments
1 parent d9aa547 commit 09be61e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Uno.Extensions.Reactive/Core/ListState.Extensions.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static ValueTask UpdateValue<T>(this IListState<T> state, Func<Option<IIm
9595
/// <typeparam name="T">The type of the items in the list.</typeparam>
9696
/// <param name="state">The list state onto which the item should be added.</param>
9797
/// <param name="item">The item to add.</param>
98-
/// <param name="ct">A token to abort the async add operation.</param>
98+
/// <param name="ct">A token to abort the async insert operation.</param>
9999
/// <returns></returns>
100100
public static ValueTask InsertAsync<T>(this IListState<T> state, T item, CancellationToken ct = default)
101101
=> state.UpdateDataAsync(items => Option.Some((items.SomeOrDefault() ?? ImmutableList<T>.Empty).Insert(0, item)), ct);
@@ -117,7 +117,7 @@ public static ValueTask AddAsync<T>(this IListState<T> state, T item, Cancellati
117117
/// <typeparam name="T">The type of the items in the list.</typeparam>
118118
/// <param name="state">The list state onto which the item should be added.</param>
119119
/// <param name="match">Predicate to determine which items should be removed.</param>
120-
/// <param name="ct">A token to abort the async add operation.</param>
120+
/// <param name="ct">A token to abort the async remove operation.</param>
121121
/// <returns></returns>
122122
public static ValueTask RemoveAllAsync<T>(this IListState<T> state, Predicate<T> match, CancellationToken ct = default)
123123
=> state.UpdateDataAsync(itemsOpt => itemsOpt.Map(items => items.RemoveAll(match)), ct);
@@ -130,7 +130,7 @@ public static ValueTask RemoveAllAsync<T>(this IListState<T> state, Predicate<T>
130130
/// <param name="state">The list state onto which the item should be added.</param>
131131
/// <param name="oldItem">The old value of the item.</param>
132132
/// <param name="newItem">The new value for the item.</param>
133-
/// <param name="ct">A token to abort the async add operation.</param>
133+
/// <param name="ct">A token to abort the async update operation.</param>
134134
/// <returns></returns>
135135
public static ValueTask UpdateItemAsync<T>(this IListState<T> state, T oldItem, T newItem, CancellationToken ct = default)
136136
where T : notnull, IKeyEquatable<T>
@@ -157,7 +157,7 @@ public static ValueTask UpdateItemAsync<T>(this IListState<T> state, T oldItem,
157157
/// <param name="state">The list state onto which the item should be added.</param>
158158
/// <param name="oldItem">The old value of the item.</param>
159159
/// <param name="newItem">The new value for the item.</param>
160-
/// <param name="ct">A token to abort the async add operation.</param>
160+
/// <param name="ct">A token to abort the async update operation.</param>
161161
/// <returns></returns>
162162
public static ValueTask UpdateItemAsync<T>(this IListState<T?> state, T oldItem, T? newItem, CancellationToken ct = default)
163163
where T : struct, IKeyEquatable<T>
@@ -184,7 +184,7 @@ public static ValueTask UpdateItemAsync<T>(this IListState<T?> state, T oldItem,
184184
/// <param name="state">The list state onto which the item should be added.</param>
185185
/// <param name="oldItem">The old value of the item.</param>
186186
/// <param name="updater">How to update items.</param>
187-
/// <param name="ct">A token to abort the async add operation.</param>
187+
/// <param name="ct">A token to abort the async update operation.</param>
188188
/// <returns></returns>
189189
public static ValueTask UpdateItemAsync<T>(this IListState<T> state, T oldItem, Func<T, T> updater, CancellationToken ct = default)
190190
where T : notnull, IKeyEquatable<T>
@@ -210,7 +210,7 @@ public static ValueTask UpdateItemAsync<T>(this IListState<T> state, T oldItem,
210210
/// <param name="state">The list state onto which the item should be added.</param>
211211
/// <param name="oldItem">The old value of the item.</param>
212212
/// <param name="updater">How to update items.</param>
213-
/// <param name="ct">A token to abort the async add operation.</param>
213+
/// <param name="ct">A token to abort the async update operation.</param>
214214
/// <returns></returns>
215215
public static ValueTask UpdateItemAsync<T>(this IListState<T?> state, T oldItem, Func<T?, T?> updater, CancellationToken ct = default)
216216
where T : struct, IKeyEquatable<T>
@@ -237,7 +237,7 @@ public static ValueTask UpdateItemAsync<T>(this IListState<T?> state, T oldItem,
237237
/// <param name="state">The list state onto which the item should be added.</param>
238238
/// <param name="match">Predicate to determine which items should be removed.</param>
239239
/// <param name="updater">How to update items.</param>
240-
/// <param name="ct">A token to abort the async add operation.</param>
240+
/// <param name="ct">A token to abort the async update operation.</param>
241241
/// <returns></returns>
242242
public static ValueTask UpdateAllAsync<T>(this IListState<T> state, Predicate<T> match, Func<T, T> updater, CancellationToken ct = default)
243243
=> state.UpdateDataAsync(
@@ -272,7 +272,7 @@ public static ValueTask UpdateAsync<T>(this IListState<T> state, Predicate<T> ma
272272
/// <typeparam name="T">The type of the items in the list.</typeparam>
273273
/// <param name="listState">The list state onto which the item should be updated.</param>
274274
/// <param name="item">The updated version of the item.</param>
275-
/// <param name="ct">A token to abort the async add operation.</param>
275+
/// <param name="ct">A token to abort the async update operation.</param>
276276
/// <returns></returns>
277277
public static ValueTask UpdateAsync<T>(this IListState<T> listState, T item, CancellationToken ct = default)
278278
where T : IKeyEquatable<T>

0 commit comments

Comments
 (0)