docs: fix typos

This commit is contained in:
Pierre Grimaud 2022-12-25 22:39:50 +01:00
parent 71ce291cb9
commit b314e1b37d
No known key found for this signature in database
GPG Key ID: 7BD301A3933A8974
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_warningsToFilter = {"This is a pre-release compiler version"};
std::vector<std::string> m_messagesToCut = {"Source file requires different compiler version (current compiler is"}; 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() solidity::frontend::CompilerStack& compiler()
{ {
if (!m_compiler) if (!m_compiler)
@ -80,7 +80,7 @@ protected:
return *m_compiler; return *m_compiler;
} }
/// @returns reference to lazy-instanciated CompilerStack. /// @returns reference to lazy-instantiated CompilerStack.
solidity::frontend::CompilerStack const& compiler() const solidity::frontend::CompilerStack const& compiler() const
{ {
if (!m_compiler) if (!m_compiler)

View File

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

View File

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

View File

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

View File

@ -944,7 +944,7 @@ string TypeVisitor::visit(StructType const& _type)
structDefinition(_type); structDefinition(_type);
// Set last dyn param if struct contains a dyn param e.g., bytes, array etc. // Set last dyn param if struct contains a dyn param e.g., bytes, array etc.
m_isLastDynParamRightPadded = DynParamVisitor().visit(_type); 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); m_baseType = s_structTypeName + to_string(m_structStartCounter);
} }
else else