Skip to content

Commit 9c9eddb

Browse files
Merge pull request #14771 from GoodDaisy/develop
Fix commentary typos
2 parents 5aace4f + b8d0077 commit 9c9eddb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libsolidity/codegen/ArrayUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ void ArrayUtils::copyArrayToMemory(ArrayType const& _sourceType, bool _padToWord
524524
{
525525
// memory_end_offset - start is the actual length (we want to compute the ceil of).
526526
// memory_offset - start is its next multiple of 32, but it might be off by 32.
527-
// so we compute: memory_end_offset += (memory_offset - memory_end_offest) & 31
527+
// so we compute: memory_end_offset += (memory_offset - memory_end_offset) & 31
528528
m_context << Instruction::DUP3 << Instruction::SWAP1 << Instruction::SUB;
529529
m_context << u256(31) << Instruction::AND;
530530
m_context << Instruction::DUP3 << Instruction::ADD;

libsolidity/codegen/ArrayUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ArrayUtils
5151
/// place as required by the ABI encoding). Use CompilerUtils::convertType if you want real
5252
/// memory copies of nested arrays.
5353
/// Stack pre: memory_offset source_item
54-
/// Stack post: memory_offest + length(padded)
54+
/// Stack post: memory_offset + length(padded)
5555
void copyArrayToMemory(ArrayType const& _sourceType, bool _padToWordBoundaries = true) const;
5656
/// Clears the given dynamic or static array.
5757
/// Stack pre: storage_ref storage_byte_offset

test/libsolidity/semanticTests/externalContracts/_prbmath/PRBMathCommon.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ library PRBMathCommon {
255255
///
256256
/// Caveats:
257257
/// - The body is purposely left uncommented; see the NatSpec comments in "PRBMathCommon.mulDiv" to understand how this works.
258-
/// - It is assumed that the result can never be type(uint256).max when x and y solve the following two queations:
258+
/// - It is assumed that the result can never be type(uint256).max when x and y solve the following two equations:
259259
/// 1. x * y = type(uint256).max * SCALE
260260
/// 2. (x * y) % SCALE >= SCALE / 2
261261
///

0 commit comments

Comments
 (0)