History

GSF.Core: Fixed spelling of comparison in several places.

J. Ritchie Carroll committed 8 years ago

Commit 95bca8d1 parent ad47e942 files · +44 −44Browse files

Showing the changes to Source/Libraries/GSF.Core.Shared/ArrayExtensions.cs (1 of 2 files). Show all

Unified · Split

Source/Libraries/GSF.Core.Shared/ArrayExtensions.cs+8−8
@@ -531,18 +531,18 @@ namespace GSF · 530 unmodified lines
531531 if (length1 != length2)
532532 return length1.CompareTo(length2);
533533
534− int comparision = 0;
534+ int comparison = 0;
535535
536536 // Compares elements of arrays that are of equal size.
537537 for (int x = 0; x < length1; x++)
538538 {
539− comparision = source[x].CompareTo(other[x]);
539+ comparison = source[x].CompareTo(other[x]);
540540
541− if (comparision != 0)
541+ if (comparison != 0)
542542 break;
543543 }
544544
545− return comparision;
545+ return comparison;
546546 }
547547
548548 /// <summary>
@@ -630,18 +630,18 @@ namespace GSF · 81 unmodified lines
630630 // if ((int.MaxValue - otherOffset - count) < 0)
631631 // throw new ArgumentOutOfRangeException("sourceOffset + count", "exceeds maximum array size");
632632
633− int comparision = 0;
633+ int comparison = 0;
634634
635635 // Compares elements of arrays that are of equal size.
636636 for (int x = 0; x < count; x++)
637637 {
638− comparision = source[sourceOffset + x].CompareTo(other[otherOffset + x]);
638+ comparison = source[sourceOffset + x].CompareTo(other[otherOffset + x]);
639639
640− if (comparision != 0)
640+ if (comparison != 0)
641641 break;
642642 }
643643
644− return comparision;
644+ return comparison;
645645 }
646646
647647 // Handling byte arrays as a special case for combining multiple buffers since this can

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t