Merge pull request #73 from Krovatkin/patch-1

Fix a small type in a calc example in Readme.md
This commit is contained in:
yhirose 2019-12-27 16:53:06 -05:00 committed by GitHub
commit c0d2318b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ int main(void) {
parser["Multitive"] = [](const SemanticValues& sv) {
switch (sv.choice()) {
case 0: // "Primary '*' Multitive"
return any_cast<int>(sv[0]) + any_cast<int>(sv[1]);
return any_cast<int>(sv[0]) * any_cast<int>(sv[1]);
default: // "Primary"
return any_cast<int>(sv[0]);
}