Skip to content

Commit

Permalink
fix label check
Browse files Browse the repository at this point in the history
  • Loading branch information
winstywang committed Jun 6, 2016
1 parent 4b01d83 commit dc027a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/symbol/symbol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ inline void KeywordArgumentMismatch(const char *source,
}

for (const auto& key : user_args) {
if (keys.count(key) == 0) {
if (keys.count(key) == 0 && key.substr(key.size() - 5, 5) != "label") {
LOG(FATAL) << source
<< "Keyword argument name " << key << " not found."
<< msg.str();
Expand Down

0 comments on commit dc027a4

Please sign in to comment.