Skip to content

Commit

Permalink
fix: typos (#6360)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdventureSeeker987 authored Dec 13, 2023
1 parent 0a3a694 commit af04899
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions src/Nethermind/Nethermind.Crypto/AesEngineX86Intrinsic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public Encode128(Vector128<byte>[] roundKeys) : base(roundKeys) { }

public override void ProcessRounds(ref Vector128<byte> state)
{
// Take local refence to array so Jit can reason length doesn't change in method
// Take local reference to array so Jit can reason length doesn't change in method
Vector128<byte>[] roundKeys = _roundKeys;
{
// Get the Jit to bounds check once rather than each increasing array access
Expand Down Expand Up @@ -247,7 +247,7 @@ public Decode128(Vector128<byte>[] roundKeys) : base(roundKeys) { }

public override void ProcessRounds(ref Vector128<byte> state)
{
// Take local refence to array so Jit can reason length doesn't change in method
// Take local reference to array so Jit can reason length doesn't change in method
Vector128<byte>[] roundKeys = _roundKeys;
{
// Get the Jit to bounds check once rather than each increasing array access
Expand Down Expand Up @@ -277,7 +277,7 @@ public Encode192(Vector128<byte>[] roundKeys) : base(roundKeys) { }

public override void ProcessRounds(ref Vector128<byte> state)
{
// Take local refence to array so Jit can reason length doesn't change in method
// Take local reference to array so Jit can reason length doesn't change in method
Vector128<byte>[] roundKeys = _roundKeys;
{
// Get the Jit to bounds check once rather than each increasing array access
Expand Down Expand Up @@ -309,7 +309,7 @@ public Decode192(Vector128<byte>[] roundKeys) : base(roundKeys) { }

public override void ProcessRounds(ref Vector128<byte> state)
{
// Take local refence to array so Jit can reason length doesn't change in method
// Take local reference to array so Jit can reason length doesn't change in method
Vector128<byte>[] roundKeys = _roundKeys;
{
// Get the Jit to bounds check once rather than each increasing array access
Expand Down Expand Up @@ -341,7 +341,7 @@ public Encode256(Vector128<byte>[] roundKeys) : base(roundKeys) { }

public override void ProcessRounds(ref Vector128<byte> state)
{
// Take local refence to array so Jit can reason length doesn't change in method
// Take local reference to array so Jit can reason length doesn't change in method
Vector128<byte>[] roundKeys = _roundKeys;
{
// Get the Jit to bounds check once rather than each increasing array access
Expand Down Expand Up @@ -375,7 +375,7 @@ public Decode256(Vector128<byte>[] roundKeys) : base(roundKeys) { }

public override void ProcessRounds(ref Vector128<byte> state)
{
// Take local refence to array so Jit can reason length doesn't change in method
// Take local reference to array so Jit can reason length doesn't change in method
Vector128<byte>[] roundKeys = _roundKeys;
{
// Get the Jit to bounds check once rather than each increasing array access
Expand Down
2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.Db.Rocks/DbOnTheRocks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ private RocksDb Init(string basePath, string dbPath, IDbConfig dbConfig, ILogMan
}
catch (RocksDbException x) when (x.Message.Contains("LOCK"))
{
if (_logger.IsWarn) _logger.Warn("If your database did not close properly you need to call 'find -type f -name '*LOCK*' -delete' from the databse folder");
if (_logger.IsWarn) _logger.Warn("If your database did not close properly you need to call 'find -type f -name '*LOCK*' -delete' from the database folder");
throw;
}
catch (RocksDbSharpException x)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void ProcessCompactionStats(string compactionStatsString)
}
else
{
_logger.Warn($"No RocksDB compaction stats available for {_dbName} databse.");
_logger.Warn($"No RocksDB compaction stats available for {_dbName} database.");
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/Nethermind/Nethermind.Db.Test/DbMetricsUpdaterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void ProcessCompactionStats_EmptyDump()

Assert.That(Metrics.DbStats.Count, Is.EqualTo(0));

logger.Received().Warn("No RocksDB compaction stats available for Test databse.");
logger.Received().Warn("No RocksDB compaction stats available for Test database.");
}

[Test]
Expand All @@ -99,7 +99,7 @@ public void ProcessCompactionStats_NullDump()

Assert.That(Metrics.DbStats.Count, Is.EqualTo(0));

logger.Received().Warn("No RocksDB compaction stats available for Test databse.");
logger.Received().Warn("No RocksDB compaction stats available for Test database.");
}
}
}
2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.Serialization.Rlp/Rlp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ public Span<byte> DecodeByteArraySpan()
if (lengthOfLength > 4)
{
// strange but needed to pass tests - seems that spec gives int64 length and tests int32 length
throw new RlpException("Expected length of lenth less or equal 4");
throw new RlpException("Expected length of length less or equal 4");
}

int length = DeserializeLength(lengthOfLength);
Expand Down

0 comments on commit af04899

Please sign in to comment.