Skip to content

Commit d20d7c8

Browse files
fixup! Natspect memory-safe annotation deprecation warning
1 parent 87dc821 commit d20d7c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libsolidity/analysis/DocStringTagParser.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,16 @@ bool DocStringTagParser::visit(InlineAssembly const& _assembly)
206206
m_errorReporter.warning(
207207
8544_error,
208208
_assembly.location(),
209-
"Inline assembly marked as memory safe using both a NatSpec tag and an assembly flag. "
210-
"If you are not concerned with backwards compatibility, only use the assembly flag, "
209+
"Inline assembly marked as memory safe using both a NatSpec tag and an assembly block annotation. "
210+
"If you are not concerned with backwards compatibility, only use the assembly block annotation, "
211211
"otherwise only use the NatSpec tag."
212212
);
213213
_assembly.annotation().markedMemorySafe = true;
214214
m_errorReporter.warning(
215215
2424_error,
216216
_assembly.location(),
217-
"Natspec 'memory-safe-assembly' special comment for inline assembly is deprecated and scheduled for removal in the next breaking version (0.9). "
217+
"Natspec 'memory-safe-assembly' special comment for inline assembly is deprecated and "
218+
"scheduled for removal in the next breaking version (0.9). "
218219
"Use the memory-safe block annotation instead."
219220
);
220221
}

0 commit comments

Comments
 (0)