瀏覽代碼

Ix: Fix some misspellings

Dávid Karnok 7 年之前
父節點
當前提交
38584bbe86

+ 2 - 2
Ix.NET/Source/System.Interactive.Async/Catch.cs

@@ -128,7 +128,7 @@ namespace System.Linq
                                 }
                                 catch (TException ex)
                                 {
-                                    // Note: Ideally we'd dipose of the previous enumerator before
+                                    // Note: Ideally we'd dispose of the previous enumerator before
                                     // invoking the handler, but we use this order to preserve
                                     // current behavior
                                     var err = handler(ex)
@@ -253,4 +253,4 @@ namespace System.Linq
             }
         }
     }
-}
+}

+ 2 - 2
Ix.NET/Source/System.Interactive.Async/Create.cs

@@ -28,7 +28,7 @@ namespace System.Linq
                 throw new ArgumentNullException(nameof(moveNext));
             }
 
-            // Note: Many methods pass null in for the second two params. We're assuming
+            // Note: Many methods pass null in for the second two parameters. We're assuming
             // That the caller is responsible and knows what they're doing
             return new AnonymousAsyncIterator<T>(moveNext, current, dispose);
         }
@@ -128,4 +128,4 @@ namespace System.Linq
             }
         }
     }
-}
+}

+ 4 - 4
Ix.NET/Source/System.Interactive.Async/Set.cs

@@ -32,7 +32,7 @@ namespace System.Linq
         public bool Add(TElement value)
         {
 #if DEBUG
-            Debug.Assert(!_haveRemoved, "This class is optimised for never calling Add after Remove. If your changes need to do so, undo that optimization.");
+            Debug.Assert(!_haveRemoved, "This class is optimized for never calling Add after Remove. If your changes need to do so, undo that optimization.");
 #endif
             var hashCode = InternalGetHashCode(value);
             for (var i = _buckets[hashCode % _buckets.Length] - 1; i >= 0; i = _slots[i]._next)
@@ -99,7 +99,7 @@ namespace System.Linq
         internal TElement[] ToArray()
         {
 #if DEBUG
-            Debug.Assert(!_haveRemoved, "Optimised ToArray cannot be called if Remove has been called.");
+            Debug.Assert(!_haveRemoved, "Optimized ToArray cannot be called if Remove has been called.");
 #endif
             var array = new TElement[Count];
             for (var i = 0; i != array.Length; ++i)
@@ -113,7 +113,7 @@ namespace System.Linq
         internal List<TElement> ToList()
         {
 #if DEBUG
-            Debug.Assert(!_haveRemoved, "Optimised ToList cannot be called if Remove has been called.");
+            Debug.Assert(!_haveRemoved, "Optimized ToList cannot be called if Remove has been called.");
 #endif
             var count = Count;
             var list = new List<TElement>(count);
@@ -149,4 +149,4 @@ namespace System.Linq
             internal TElement _value;
         }
     }
-}
+}

+ 2 - 2
Ix.NET/Source/System.Interactive.Providers/QueryableEx.cs

@@ -753,7 +753,7 @@ namespace System.Linq
         /// </summary>
         /// <typeparam name="TResult">Result sequence element type.</typeparam>
         /// <param name="provider">Query provider.</param>
-        /// <param name="value">Value to repreat in the resulting sequence.</param>
+        /// <param name="value">Value to repeat in the resulting sequence.</param>
         /// <returns>Sequence repeating the given value infinitely.</returns>
         public static IEnumerable<TResult> Repeat<TResult>(this IQueryProvider provider, TResult value)
         {
@@ -1594,7 +1594,7 @@ namespace System.Linq
         /// <typeparam name="TSource">First source sequence element type.</typeparam>
         /// <typeparam name="TOther">Second source sequence element type.</typeparam>
         /// <param name="source">A sequence of values to project.</param>
-        /// <param name="other">Inner sequence each source sequenec element is projected onto.</param>
+        /// <param name="other">Inner sequence each source sequence element is projected onto.</param>
         /// <returns>Sequence flattening the sequences that result from projecting elements in the source sequence.</returns>
         public static IQueryable<TOther> SelectMany<TSource, TOther>(this IQueryable<TSource> source, IEnumerable<TOther> other)
         {

+ 2 - 2
Ix.NET/Source/System.Interactive/Repeat.cs

@@ -12,7 +12,7 @@ namespace System.Linq
         ///     Generates a sequence by repeating the given value infinitely.
         /// </summary>
         /// <typeparam name="TResult">Result sequence element type.</typeparam>
-        /// <param name="value">Value to repreat in the resulting sequence.</param>
+        /// <param name="value">Value to repeat in the resulting sequence.</param>
         /// <returns>Sequence repeating the given value infinitely.</returns>
         public static IEnumerable<TResult> Repeat<TResult>(TResult value)
         {
@@ -94,4 +94,4 @@ namespace System.Linq
             }
         }
     }
-}
+}

+ 2 - 2
Ix.NET/Source/System.Interactive/SelectMany.cs

@@ -14,7 +14,7 @@ namespace System.Linq
         /// <typeparam name="TSource">First source sequence element type.</typeparam>
         /// <typeparam name="TOther">Second source sequence element type.</typeparam>
         /// <param name="source">A sequence of values to project.</param>
-        /// <param name="other">Inner sequence each source sequenec element is projected onto.</param>
+        /// <param name="other">Inner sequence each source sequence element is projected onto.</param>
         /// <returns>Sequence flattening the sequences that result from projecting elements in the source sequence.</returns>
         public static IEnumerable<TOther> SelectMany<TSource, TOther>(this IEnumerable<TSource> source, IEnumerable<TOther> other)
         {
@@ -31,4 +31,4 @@ namespace System.Linq
             return source.SelectMany(_ => other);
         }
     }
-}
+}