aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-03-07 01:09:54 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-03-07 01:09:54 +0800
commitb4d38c5491fbde31dd36471ff442334cf906e180 (patch)
treebb05ac91afa6276335fcb41a53cef3f803d19392 /libsolidity
parent14b12ae7452388516d0c4eb833b0c83fe5156b44 (diff)
downloaddexon-solidity-b4d38c5491fbde31dd36471ff442334cf906e180.tar.gz
dexon-solidity-b4d38c5491fbde31dd36471ff442334cf906e180.tar.zst
dexon-solidity-b4d38c5491fbde31dd36471ff442334cf906e180.zip
Use double quotes for suggestion about hex literals and denominations.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index 1748b518..6f55941f 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -2065,13 +2065,13 @@ void TypeChecker::endVisit(Literal const& _literal)
m_errorReporter.fatalTypeError(
_literal.location(),
"Hexadecimal numbers cannot be used with unit denominations. "
- "You can use an expression of the form '0x1234 * 1 day' instead."
+ "You can use an expression of the form \"0x1234 * 1 day\" instead."
);
else
m_errorReporter.warning(
_literal.location(),
"Hexadecimal numbers with unit denominations are deprecated. "
- "You can use an expression of the form '0x1234 * 1 day' instead."
+ "You can use an expression of the form \"0x1234 * 1 day\" instead."
);
}
if (!_literal.annotation().type)