Skip to content

Commit

Permalink
doc: update usage section
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-go committed Sep 5, 2023
1 parent 5ff33b7 commit fd8fea7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

int main() {
qupp::prompt::Prompt prompt;
std::string input = prompt.ask_for_input("What's your name? ");
std::cout << "Hello, " << input << "!" << std::endl;
auto result = prompt.ask_for_input("What's your name? ");
std::cout << "Hello, " << result.value() << "!" << std::endl;
return 0;
}
```
Expand Down

0 comments on commit fd8fea7

Please sign in to comment.