Fix a small type in a calc example in Readme.md

pull/73/head
Nick Korovaiko 4 years ago committed by GitHub
parent be470f9332
commit 3f57797cbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md

@ -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]);
}

Loading…
Cancel
Save