Skip to content

Commit 4d109da

Browse files
authored
Fix typo from unit to uint (#121884)
Fix typo from `unit` to `uint` in comment.
1 parent 5277ab4 commit 4d109da

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/libraries/System.Collections.Immutable/src/System/Collections/Frozen/String/LengthBucketsFrozenDictionary.AlternateLookup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char>
4949
}
5050
else
5151
{
52-
// -1 is used to indicate a null, when it's casted to unit it becomes > keys.Length
52+
// -1 is used to indicate a null, when it's casted to uint it becomes > keys.Length
5353
break;
5454
}
5555
}

src/libraries/System.Collections.Immutable/src/System/Collections/Frozen/String/LengthBucketsFrozenDictionary.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private protected override ref readonly TValue GetValueRefOrNullRefCore(string k
8181
}
8282
else
8383
{
84-
// -1 is used to indicate a null, when it's casted to unit it becomes > keys.Length
84+
// -1 is used to indicate a null, when it's casted to uint it becomes > keys.Length
8585
break;
8686
}
8787
}
@@ -100,7 +100,7 @@ private protected override ref readonly TValue GetValueRefOrNullRefCore(string k
100100
}
101101
else
102102
{
103-
// -1 is used to indicate a null, when it's casted to unit it becomes > keys.Length
103+
// -1 is used to indicate a null, when it's casted to uint it becomes > keys.Length
104104
break;
105105
}
106106
}

src/libraries/System.Collections.Immutable/src/System/Collections/Frozen/String/LengthBucketsFrozenSet.AlternateLookup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private int FindItemIndexAlternate(ReadOnlySpan<char> item)
4848
}
4949
else
5050
{
51-
// -1 is used to indicate a null, when it's casted to unit it becomes > items.Length
51+
// -1 is used to indicate a null, when it's casted to uint it becomes > items.Length
5252
break;
5353
}
5454
}

0 commit comments

Comments
 (0)