From 2bc003018d7e630191a109e43d6355be2c026e0d Mon Sep 17 00:00:00 2001 From: Pranav Srinivas Kumar Date: Mon, 1 Apr 2019 21:43:55 -0400 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 73aa034..0b063c7 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,10 @@ Here's an example of a ***positional argument***: ```cpp program.add_argument("square") .help("display the square of a given integer") - .action([](const std::string& value) { auto integer = std::stoi(value); return integer * integer; }); + .action([](const std::string& value) { return pow(std::stoi(value), 2); }); program.parse_args(argc, argv); -std::cout << program.get("square") << std::endl; +std::cout << program.get("square") << std::endl; ``` And running the code: