Merge pull request #13830 from pgrimaud/develop

docs: fix typos
This commit is contained in:
Nikola Matić 2022-12-27 09:51:05 -05:00 committed by GitHub
commit f1d427242f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View File

@ -72,7 +72,7 @@ protected:
std::vector<std::string> m_warningsToFilter = {"This is a pre-release compiler version"};
std::vector<std::string> m_messagesToCut = {"Source file requires different compiler version (current compiler is"};
/// @returns reference to lazy-instanciated CompilerStack.
/// @returns reference to lazy-instantiated CompilerStack.
solidity::frontend::CompilerStack& compiler()
{
if (!m_compiler)
@ -80,7 +80,7 @@ protected:
return *m_compiler;
}
/// @returns reference to lazy-instanciated CompilerStack.
/// @returns reference to lazy-instantiated CompilerStack.
solidity::frontend::CompilerStack const& compiler() const
{
if (!m_compiler)

View File

@ -1538,7 +1538,7 @@ BOOST_AUTO_TEST_CASE(struct_referencing)
s.a = 4;
return s;
}
// argument-dependant lookup tests
// argument-dependent lookup tests
function a(I.S memory) public pure returns (uint) { return 1; }
function a(S memory) public pure returns (uint) { return 2; }
}

View File

@ -164,10 +164,10 @@ contract Test {
Pairing.G1Point memory p2;
p1.X = 1; p1.Y = 2;
p2.X = 1; p2.Y = 2;
Pairing.G1Point memory explict_sum = Pairing.add(p1, p2);
Pairing.G1Point memory explicit_sum = Pairing.add(p1, p2);
Pairing.G1Point memory scalar_prod = Pairing.mul(p1, 2);
return (explict_sum.X == scalar_prod.X &&
explict_sum.Y == scalar_prod.Y);
return (explicit_sum.X == scalar_prod.X &&
explicit_sum.Y == scalar_prod.Y);
}
function g() public returns (bool) {
Pairing.G1Point memory x = Pairing.add(Pairing.P1(), Pairing.negate(Pairing.P1()));

View File

@ -15,7 +15,7 @@ library L {
s.a = 4;
return s;
}
// argument-dependant lookup tests
// argument-dependent lookup tests
function a(I.S memory) public pure returns (uint) { return 1; }
function a(S memory) public pure returns (uint) { return 2; }
}

View File

@ -944,7 +944,7 @@ string TypeVisitor::visit(StructType const& _type)
structDefinition(_type);
// Set last dyn param if struct contains a dyn param e.g., bytes, array etc.
m_isLastDynParamRightPadded = DynParamVisitor().visit(_type);
// If top-level struct is a non-emtpy struct, assign the name S<suffix>
// If top-level struct is a non-empty struct, assign the name S<suffix>
m_baseType = s_structTypeName + to_string(m_structStartCounter);
}
else