Skip to content

Commit

Permalink
Merge pull request ethereum#3970 from elopio/test/docstring-tag-end
Browse files Browse the repository at this point in the history
docstring: add missing space
  • Loading branch information
axic authored Apr 24, 2018
2 parents e685f9f + b74566e commit 258ae89
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libsolidity/parsing/DocStringParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ bool DocStringParser::parse(string const& _docString, ErrorReporter& _errorRepor
auto tagNameEndPos = firstWhitespaceOrNewline(tagPos, end);
if (tagNameEndPos == end)
{
appendError("End of tag " + string(tagPos, tagNameEndPos) + "not found");
appendError("End of tag " + string(tagPos, tagNameEndPos) + " not found");
break;
}

Expand Down
6 changes: 6 additions & 0 deletions test/libsolidity/syntaxTests/natspec/docstring_empty_tag.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
contract C {
/// @param
function vote(uint id) public;
}
// ----
// DocstringParsingError: End of tag @param not found

0 comments on commit 258ae89

Please sign in to comment.