Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Feb 4, 2024
1 parent 2dc8593 commit 94ed3d6
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src/DotRecast.Core/Buffers/RcRentedArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ public T this[int index]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
return _array[index];
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
set
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
_array[index] = value;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/DotRecast.Core/Collections/RcStackArray128.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public T this[int index]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

return index switch
{
Expand Down Expand Up @@ -282,7 +282,7 @@ public T this[int index]

set
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

switch (index)
{
Expand Down
4 changes: 2 additions & 2 deletions src/DotRecast.Core/Collections/RcStackArray16.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public T this[int index]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

return index switch
{
Expand All @@ -58,7 +58,7 @@ public T this[int index]

set
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

switch (index)
{
Expand Down
4 changes: 2 additions & 2 deletions src/DotRecast.Core/Collections/RcStackArray2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public T this[int index]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

return index switch
{
Expand All @@ -30,7 +30,7 @@ public T this[int index]

set
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

switch (index)
{
Expand Down
4 changes: 2 additions & 2 deletions src/DotRecast.Core/Collections/RcStackArray256.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public T this[int index]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

return index switch
{
Expand Down Expand Up @@ -538,7 +538,7 @@ public T this[int index]

set
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

switch (index)
{
Expand Down
4 changes: 2 additions & 2 deletions src/DotRecast.Core/Collections/RcStackArray32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public T this[int index]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

return index switch
{
Expand Down Expand Up @@ -90,7 +90,7 @@ public T this[int index]

set
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

switch (index)
{
Expand Down
4 changes: 2 additions & 2 deletions src/DotRecast.Core/Collections/RcStackArray4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public T this[int index]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

return index switch
{
Expand All @@ -34,7 +34,7 @@ public T this[int index]

set
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

switch (index)
{
Expand Down
4 changes: 2 additions & 2 deletions src/DotRecast.Core/Collections/RcStackArray512.cs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ public T this[int index]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

return index switch
{
Expand Down Expand Up @@ -1051,7 +1051,7 @@ public T this[int index]

set
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

switch (index)
{
Expand Down
4 changes: 2 additions & 2 deletions src/DotRecast.Core/Collections/RcStackArray64.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public T this[int index]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

return index switch
{
Expand Down Expand Up @@ -154,7 +154,7 @@ public T this[int index]

set
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

switch (index)
{
Expand Down
4 changes: 2 additions & 2 deletions src/DotRecast.Core/Collections/RcStackArray8.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public T this[int index]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

return index switch
{
Expand All @@ -42,7 +42,7 @@ public T this[int index]

set
{
ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);
RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length);

switch (index)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace DotRecast.Core
{
public static class ThrowHelper
public static class RcThrowHelper
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void ThrowExceptionIfIndexOutOfRange(int index, int size)
Expand Down

0 comments on commit 94ed3d6

Please sign in to comment.