Skip to content

Commit 2e57039

Browse files
kilavvyaarlt
authored andcommitted
fix typo in distinguishingProperty variable name (#15763)
* Update FilesystemUtils.cpp * Update OverrideChecker.cpp
1 parent 6854a62 commit 2e57039

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libsolidity/analysis/OverrideChecker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ void OverrideChecker::checkAmbiguousOverridesInternal(std::set<OverrideProxy> _b
801801
std::string callableName = _baseCallables.begin()->astNodeName();
802802
if (_baseCallables.begin()->isVariable())
803803
callableName = "function";
804-
std::string distinguishigProperty = _baseCallables.begin()->distinguishingProperty();
804+
std::string distinguishingProperty = _baseCallables.begin()->distinguishingProperty();
805805

806806
bool foundVariable = false;
807807
for (auto const& base: _baseCallables)
@@ -811,7 +811,7 @@ void OverrideChecker::checkAmbiguousOverridesInternal(std::set<OverrideProxy> _b
811811
std::string message =
812812
"Derived contract must override " + callableName + " \"" +
813813
_baseCallables.begin()->name() +
814-
"\". Two or more base classes define " + callableName + " with same " + distinguishigProperty + ".";
814+
"\". Two or more base classes define " + callableName + " with same " + distinguishingProperty + ".";
815815

816816
if (foundVariable)
817817
message +=

test/FilesystemUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ void solidity::test::createFilesWithParentDirs(std::set<boost::filesystem::path>
4444
void solidity::test::createFileWithContent(boost::filesystem::path const& _path, std::string const& _content)
4545
{
4646
if (boost::filesystem::is_regular_file(_path))
47-
BOOST_THROW_EXCEPTION(std::runtime_error("File already exists: \"" + _path.string() + "\".")); \
47+
BOOST_THROW_EXCEPTION(std::runtime_error("File already exists: \"" + _path.string() + "\"."));
4848

4949
// Use binary mode to avoid line ending conversion on Windows.
5050
std::ofstream newFile(_path.string(), std::ofstream::binary);
5151
if (newFile.fail() || !boost::filesystem::is_regular_file(_path))
52-
BOOST_THROW_EXCEPTION(std::runtime_error("Failed to create a file: \"" + _path.string() + "\".")); \
52+
BOOST_THROW_EXCEPTION(std::runtime_error("Failed to create a file: \"" + _path.string() + "\"."));
5353

5454
newFile << _content;
5555
}

0 commit comments

Comments
 (0)