Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dipkakwani committed Dec 3, 2024
1 parent 1f3e60c commit 259a019
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Paprika.Benchmarks/SlottedArrayBenchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public bool Defragmentation_Large(int count)
// Delete random keys
for (var i = 0; i < count; i++)
{
map.Delete(GetRandomKey((byte)i, false));
map.Delete(GetRandomDefragKey((byte)i, false));
}

// Insert additional key to trigger defragmentation
Expand Down Expand Up @@ -316,7 +316,7 @@ private NibblePath GetHashCollidingKey(byte i)
return NibblePath.FromKey(slice, 0, BytesPerKeyHashColliding * NibblePath.NibblePerByte);
}

private NibblePath GetRandomKey(byte i, bool odd)
private NibblePath GetRandomDefragKey(byte i, bool odd)
{
var span = new Span<byte>(_randomKeysIndex, KeyCount - 1);
return GetDefragKey(span[i], odd);
Expand Down
2 changes: 1 addition & 1 deletion src/Paprika.Tests/Data/SlottedArrayTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public void DefragmentationLarge(int deleteCount)

var rand = new Random(13);

// Fill as much elements as possible within the slotted array.
// Fill as many elements as possible within the slotted array.
var maxKeyCount = 200;
var keyCount = 0;
var keys = new Keccak[maxKeyCount];
Expand Down

0 comments on commit 259a019

Please sign in to comment.